Skip to content

Commit

Permalink
fix: correct condition for isValidValue (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
samtrion authored Nov 21, 2024
1 parent 1b6acd3 commit 0376f92
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace NetEvolve.Defaults.Analyzer.Diagnostics;
namespace NetEvolve.Defaults.Analyzer.Diagnostics;

using System;
using System.Collections.Immutable;
Expand Down Expand Up @@ -130,8 +130,7 @@ private static bool ValidateKey(

return !isConfigured
|| string.IsNullOrWhiteSpace(configuredValue)
|| isValidValue is null
|| !isValidValue.Invoke(configuredValue!);
|| (isValidValue is not null && !isValidValue.Invoke(configuredValue!));
}

private static bool IsPackable(AnalyzerConfigOptions options) =>
Expand Down

0 comments on commit 0376f92

Please sign in to comment.