File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
tests/BenchmarkDotNet.Tests/XUnit Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,9 @@ namespace BenchmarkDotNet.Tests.XUnit;
99
1010public static class EnvRequirementChecker
1111{
12- [ CanBeNull ]
13- public static string GetSkip ( params EnvRequirement [ ] requirements ) => requirements . Select ( GetSkip ) . FirstOrDefault ( skip => skip != null ) ;
12+ public static string ? GetSkip ( params EnvRequirement [ ] requirements ) => requirements . Select ( GetSkip ) . FirstOrDefault ( skip => skip != null ) ;
1413
15- [ CanBeNull ]
16- internal static string GetSkip ( EnvRequirement requirement ) => requirement switch
14+ internal static string ? GetSkip ( EnvRequirement requirement ) => requirement switch
1715 {
1816 EnvRequirement . WindowsOnly => RuntimeInformation . IsOSPlatform ( OSPlatform . Windows ) ? null : "Windows-only test" ,
1917 EnvRequirement . NonWindows => ! RuntimeInformation . IsOSPlatform ( OSPlatform . Windows ) ? null : "Non-Windows test" ,
You can’t perform that action at this time.
0 commit comments