Skip to content

Commit 7fbbc9f

Browse files
alinasmirnovaAndreyAkinshin
authored andcommitted
Removed CanBeNull attribute
1 parent 5428ebd commit 7fbbc9f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/BenchmarkDotNet.Tests/XUnit/EnvRequirementChecker.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@ namespace BenchmarkDotNet.Tests.XUnit;
99

1010
public 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",

0 commit comments

Comments
 (0)