Skip to content

Commit 4f0939b

Browse files
Remove unnecessary try/catch
1 parent 747280c commit 4f0939b

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

src/Serilog.Sinks.InMemory.Assertions/InMemorySinkExtensions.cs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,9 @@ public static InMemorySinkAssertions Should(this InMemorySink instance)
5353

5454
var versionedAssembly = Assembly.LoadFile(versionedLocation);
5555

56-
try
57-
{
58-
_assertionsType = versionedAssembly.GetTypes()
59-
.SingleOrDefault(t => t.Name == "InMemorySinkAssertionsImpl");
60-
}
61-
catch (ReflectionTypeLoadException e)
62-
{
63-
Debugger.Break();
64-
throw;
65-
}
56+
_assertionsType = versionedAssembly
57+
.GetTypes()
58+
.SingleOrDefault(t => t.Name == "InMemorySinkAssertionsImpl");
6659
}
6760
}
6861

0 commit comments

Comments
 (0)