Skip to content

Commit

Permalink
Resolving analyzer warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
Psichorex committed Sep 16, 2023
1 parent 1c24c0f commit ffc5943
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Lombiq.Tests.UI/OrchardCoreUITestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,10 @@ protected virtual async Task ExecuteTestAsync(
finally
{
_testOutputHelper = originalTestOutputHelper;
// This warning is a false positive as it is not considering the evaluation of the if statement above.
#pragma warning disable S2583 // Conditionally executed code should be reachable
afterTest?.Invoke();
#pragma warning restore S2583 // Conditionally executed code should be reachable
}
}
}

0 comments on commit ffc5943

Please sign in to comment.