Skip to content

Commit c0bc713

Browse files
committed
Refine logic in WalkerResult
The ternary condition inside the CorrectUsage property in WalkerResult.cs has been adjusted. The change ensures that the property correctly combines conditions for CheckedFailure, termination, and non-use of "AccessedValue".
1 parent e64d64f commit c0bc713

File tree

1 file changed

+1
-1
lines changed
  • CSharpFunctionalExtensions.Analyzers/UseResultValueWithoutCheck

1 file changed

+1
-1
lines changed

CSharpFunctionalExtensions.Analyzers/UseResultValueWithoutCheck/WalkerResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ internal class WalkerResult
88

99
public bool CorrectUsage =>
1010
(AccessedValue && CheckResult == CheckResult.CheckedSuccess) ||
11-
(CheckResult == CheckResult.CheckedFailure && Terminated || !AccessedValue);
11+
(CheckResult == CheckResult.CheckedFailure && Terminated && !AccessedValue);
1212

1313
public void Reset()
1414
{

0 commit comments

Comments
 (0)