JavaRequirement: use next instead of return in code block

This commit is contained in:
Xu Cheng 2016-05-01 14:31:26 +08:00
parent 6f1116c8e1
commit 3972b900f3

View File

@ -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