Skip to content

Commit a8da77b

Browse files
Simplify
1 parent 2f87b90 commit a8da77b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Analyzers/Core/Analyzers/PopulateSwitch/PopulateSwitchExpressionHelpers.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,10 @@ private static void RemoveIfConstantPatternHasValue(IOperation operation, Dictio
7070
}
7171

7272
public static bool HasDefaultCase(ISwitchExpressionOperation operation)
73-
=> operation.Arms.Any(a => IsDefault(a));
73+
=> operation.Arms.Any(IsDefault);
7474

7575
public static bool IsDefault(ISwitchExpressionArmOperation arm)
76-
{
77-
return IsDefault(arm.Pattern);
78-
}
76+
=> IsDefault(arm.Pattern);
7977

8078
private static bool IsDefault(IPatternOperation pattern)
8179
=> pattern switch

0 commit comments

Comments
 (0)