diff --git a/scripts/static-analysis b/scripts/static-analysis index c26c9a55bb1..d2d82c19bed 100755 --- a/scripts/static-analysis +++ b/scripts/static-analysis @@ -35,8 +35,7 @@ ALLOWED_WARNINGS = [ def warning_count(static_analysis) static_analysis.warned_results - .reject { |result| ALLOWED_WARNINGS.include?(result.stderr.strip) } - .count + .count { |result| !ALLOWED_WARNINGS.include?(result.stderr.strip) } end def jobs_to_run(node_index, node_total)