summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKouhei Sutou <kou@clear-code.com>2019-01-04 07:18:06 +0900
committerKouhei Sutou <kou@clear-code.com>2019-01-04 07:18:06 +0900
commit3f702c3fdf881acd476ab1cd0ce4e074ef4d62b1 (patch)
treed1d17421fe3f89c04753f0525043f5ec17b1f474
parentdecfde4db192d632174be92181e3c40c813f8f6d (diff)
downloadrake-compiler-3f702c3fdf881acd476ab1cd0ce4e074ef4d62b1.tar.gz
Add missing parenthesis
-rw-r--r--lib/rake/javaextensiontask.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rake/javaextensiontask.rb b/lib/rake/javaextensiontask.rb
index f484db1..711148e 100644
--- a/lib/rake/javaextensiontask.rb
+++ b/lib/rake/javaextensiontask.rb
@@ -220,7 +220,7 @@ execute the Rake compilation task using the JRuby interpreter.
jruby_home = ENV['JRUBY_HOME']
if jruby_home
candidate = File.join(jruby_home, 'lib', 'jruby.jar')
- jruby_cpath = candidate if File.exist? candidate
+ jruby_cpath = candidate if File.exist?(candidate)
end
end
@@ -229,11 +229,11 @@ execute the Rake compilation task using the JRuby interpreter.
# found lib path
unless jruby_cpath
libdir = RbConfig::CONFIG['libdir']
- if libdir.start_with? "uri:classloader:"
+ if libdir.start_with?("uri:classloader:")
raise 'Cannot build with jruby-complete from Java 9 onwards'
end
candidate = File.join(libdir, "jruby.jar")
- jruby_cpath = candidate if File.exist? candidate
+ jruby_cpath = candidate if File.exist?(candidate)
end
unless jruby_cpath