lib/quality/ruby_spawn.rb in quality-38.0.1 vs lib/quality/ruby_spawn.rb in quality-39.0.1
- old
+ new
@@ -7,13 +7,13 @@
@cmd = cmd
@args = args
end
def invocation
- if !@args.empty?
- "#{cmd_with_ruby_hack_prefix} #{@args}"
- else
+ if @args.empty?
cmd_with_ruby_hack_prefix.to_s
+ else
+ "#{cmd_with_ruby_hack_prefix} #{@args}"
end
end
def cmd_with_ruby_hack_prefix
if defined?(RUBY_ENGINE) && (RUBY_ENGINE == 'jruby')