From 3f702c3fdf881acd476ab1cd0ce4e074ef4d62b1 Mon Sep 17 00:00:00 2001 From: Kouhei Sutou Date: Fri, 4 Jan 2019 07:18:06 +0900 Subject: Add missing parenthesis --- lib/rake/javaextensiontask.rb | 6 +++--- 1 file 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 -- cgit v1.2.1