lib/quality/runner.rb in quality-27.2.0 vs lib/quality/runner.rb in quality-27.3.0
- old
+ new
@@ -73,10 +73,10 @@
end
end
def count_existing_violations(filename)
existing_violations = @count_io.read(filename).to_i
- raise("Problem with file #{filename}") if existing_violations.negative?
+ raise("Problem with file #{filename}") if existing_violations < 0
existing_violations
end
def command_name(ancestor, name)
if ancestor.respond_to? :command_name