lib/quality/ruby_spawn.rb in quality-20.1.0 vs lib/quality/ruby_spawn.rb in quality-20.1.1

- old
+ new

@@ -5,13 +5,13 @@ @cmd = cmd @args = args end def invocation - if @args.size > 0 + if !@args.empty? "#{cmd_with_ruby_hack_prefix} #{@args}" else - "#{cmd_with_ruby_hack_prefix}" + cmd_with_ruby_hack_prefix.to_s end end def cmd_with_ruby_hack_prefix if defined?(RUBY_ENGINE) && (RUBY_ENGINE == 'jruby')