Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 6280fa7

Browse files
committed
Don't statically cache InUnitTestRunner.
This was causing random test failures. Fixes #1136
1 parent 19bf7aa commit 6280fa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.Extensions/Guard.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ public static void ArgumentInRange(int value, int minValue, int maxValue, string
6060

6161
// Borrowed from Splat.
6262

63-
public static bool InUnitTestRunner { get; } = Splat.ModeDetector.InUnitTestRunner();
63+
public static bool InUnitTestRunner => Splat.ModeDetector.InUnitTestRunner();
6464
}
6565
}

0 commit comments

Comments
 (0)