Skip to content

Commit 4a19190

Browse files
committed
use guard clause
1 parent fccd107 commit 4a19190

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lib/jruby_art/java_opts.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ def initialize
88
puts arg_file
99
@opts = []
1010
@opts += File.read(arg_file).split(/\s+/) if FileTest.exist?(arg_file)
11-
if opts.empty? && Processing::RP_CONFIG.fetch('java_args', false)
12-
@opts += Processing::RP_CONFIG['java_args'].split(/\s+/)
13-
end
11+
return unless opts.empty? && Processing::RP_CONFIG.fetch('java_args', false)
12+
@opts += Processing::RP_CONFIG['java_args'].split(/\s+/)
1413
end
1514
end
1615

0 commit comments

Comments
 (0)