Skip to content

Commit e28391f

Browse files
Removed duplicate EntityException type. (#7001)
* Removed duplicate EntityException type. * Fix typo in comment * Remove unused using statements * Field can be made readonly.
1 parent a9b0e17 commit e28391f

4 files changed

Lines changed: 4 additions & 32 deletions

File tree

src/NuGetGallery.Core/Entities/EntityException.cs

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/NuGetGallery.Core/Infrastructure/ElmahException.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ namespace NuGetGallery
1212
/// </summary>
1313
public class ElmahException : Exception
1414
{
15-
private Exception _baseException;
15+
private readonly Exception _baseException;
1616

1717
/// <summary>
18-
/// Server variables values in Elamh logs will be overwritten by these values.
18+
/// Server variables values in Elmah logs will be overwritten by these values.
1919
/// </summary>
2020
public Dictionary<string, string> ServerVariables
2121
{
2222
get;
2323
}
2424

25-
public ElmahException(Exception e, Dictionary<string,string> serverVariables) : base (e.Message, e.InnerException)
25+
public ElmahException(Exception e, Dictionary<string, string> serverVariables) : base(e.Message, e.InnerException)
2626
{
2727
ServerVariables = serverVariables ?? new Dictionary<string, string>();
2828
_baseException = e;
@@ -46,4 +46,4 @@ public override string ToString()
4646
return _baseException.ToString();
4747
}
4848
}
49-
}
49+
}

src/NuGetGallery.Core/NuGetGallery.Core.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@
118118
<Compile Include="Entities\IDbContextTransaction.cs" />
119119
<Compile Include="Entities\EntitiesConfiguration.cs" />
120120
<Compile Include="Entities\EntitiesContext.cs" />
121-
<Compile Include="Entities\EntityException.cs" />
122121
<Compile Include="Entities\Interception\ObjectMaterializedInterception.cs" />
123122
<Compile Include="Entities\Interception\ObjectMaterializedInterceptingDbContext.cs" />
124123
<Compile Include="Entities\EntityRepository.cs" />

src/NuGetGallery.Core/Services/FileAlreadyExistsException.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

44
using System;
5-
using System.Collections.Generic;
6-
using System.Linq;
7-
using System.Text;
8-
using System.Threading.Tasks;
95

106
namespace NuGetGallery
117
{

0 commit comments

Comments
 (0)