We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d1ade1 commit 33056d2Copy full SHA for 33056d2
src/BenchmarkDotNet.TestAdapter/Utility/TestCaseFilter.cs
@@ -132,13 +132,13 @@ private bool GetTestCaseFilterExpressionFromDiscoveryContext(IDiscoveryContext d
132
}
133
catch (TargetInvocationException e)
134
{
135
- if (e?.InnerException is TestPlatformException ex)
+ if (e.InnerException is TestPlatformException ex)
136
137
- logger.LogWarning("Exception filtering tests: {0}", ex.InnerException.Message ?? "");
+ logger.LogWarning("Exception filtering tests: {0}", ex.Message);
138
return false;
139
140
141
- throw e!.InnerException;
+ throw e.InnerException ?? e;
142
143
144
0 commit comments