JavaRequirement: use next instead of return in code block
This commit is contained in:
parent
6f1116c8e1
commit
3972b900f3
@ -6,7 +6,7 @@ class JavaRequirement < Requirement
|
||||
download "http://www.oracle.com/technetwork/java/javase/downloads/index.html"
|
||||
|
||||
satisfy :build_env => false do
|
||||
return false unless File.executable? "/usr/libexec/java_home"
|
||||
next false unless File.executable? "/usr/libexec/java_home"
|
||||
|
||||
args = %w[--failfast]
|
||||
args << "--version" << "#{@version}" if @version
|
||||
|
Loading…
x
Reference in New Issue
Block a user