lib/quality/quality_checker.rb in quality-14.1.0 vs lib/quality/quality_checker.rb in quality-15.0.0
- old
+ new
@@ -53,11 +53,10 @@
end
def check_exit_status(exit_status)
return if @command_options[:gives_error_code_on_violations] ||
@command_options[:gives_error_code_on_no_relevant_code]
-
fail("Error detected running #{full_cmd}. " \
"Exit status is #{exit_status}") if exit_status != 0
end
def existing_violations
@@ -87,12 +86,10 @@
end
private
def full_cmd
- args = @command_options[:args]
- args ||= ''
-
+ args = @command_options[:args] || ''
@found_output = false
RubySpawn.new(@cmd, args).invocation
end
def write_violations(new_violations)