diff options
author | Prashant Vithani <prashantvithani@gmail.com> | 2018-08-28 14:12:21 +0530 |
---|---|---|
committer | Prashant Vithani <prashantvithani@gmail.com> | 2018-08-28 14:12:21 +0530 |
commit | d3ff502526707f7495a6eba5b6ccdb3513b64f8a (patch) | |
tree | 54f1a8f2cf31975ba64a5f457f57670fc7d16d47 /lib/rake/javaextensiontask.rb | |
parent | 9c9a1ec41cf74faaaa2d6408d90eddec71197407 (diff) | |
download | rake-compiler-d3ff502526707f7495a6eba5b6ccdb3513b64f8a.tar.gz |
Remove redundant check as it is always present
Diffstat (limited to 'lib/rake/javaextensiontask.rb')
-rw-r--r-- | lib/rake/javaextensiontask.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rake/javaextensiontask.rb b/lib/rake/javaextensiontask.rb index b1251e3..dabb60c 100644 --- a/lib/rake/javaextensiontask.rb +++ b/lib/rake/javaextensiontask.rb @@ -216,9 +216,8 @@ execute the Rake compilation task using the JRuby interpreter. if libdir.start_with? "classpath:" raise 'Cannot build with jruby-complete' end - jruby_cpath = libdir && File.join(libdir, "jruby.jar") + jruby_cpath = File.join(libdir, "jruby.jar") end - raise "'libdir' not set" unless jruby_cpath jruby_cpath += File::PATH_SEPARATOR + args.join(File::PATH_SEPARATOR) unless args.empty? jruby_cpath ? "-cp \"#{jruby_cpath}\"" : "" end |