Skip to content

Commit

Permalink
Gfs/fix build (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
gfs committed Feb 16, 2022
1 parent adf4021 commit 93b2627
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions AppInspector/RulesVerifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ internal class RulesVerifier
private readonly string? _rulesPath;
private readonly Logger? _logger;
private readonly bool _failFast;
private bool _verified;
public bool IsVerified => _verified;

public bool IsVerified { get; private set; }
private List<RuleStatus>? _ruleStatuses;

public RulesVerifier(string? rulePath, Logger? logger, bool failFast = true)
Expand Down Expand Up @@ -69,7 +69,7 @@ public bool Verify(Rule rule)

private void CheckIntegrity()
{
_verified = true;
IsVerified = true;

foreach (Rule rule in CompiledRuleset.AsEnumerable() ?? Array.Empty<Rule>())
{
Expand All @@ -81,7 +81,7 @@ private void CheckIntegrity()
Verified = ruleVerified
});

_verified = ruleVerified && _verified;
IsVerified = ruleVerified && IsVerified;

if (_failFast && !ruleVerified)
{
Expand Down

0 comments on commit 93b2627

Please sign in to comment.