Skip to content

Commit dbc6842

Browse files
authored
Simplify if check (#9596)
1 parent db29c24 commit dbc6842

File tree

1 file changed

+1
-1
lines changed
  • snippets/csharp/System.Runtime/GCSettings/IsServerGC

1 file changed

+1
-1
lines changed

snippets/csharp/System.Runtime/GCSettings/IsServerGC/isg.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public static void Main()
88
{
99
string result;
1010

11-
if (GCSettings.IsServerGC == true)
11+
if (GCSettings.IsServerGC)
1212
result = "server";
1313
else
1414
result = "workstation";

0 commit comments

Comments
 (0)