gradle: use inline if.

Closes #7503.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Mike McQuaid 2016-12-08 10:03:19 +00:00
parent 2748902229
commit 3f1e449711

View file

@ -12,9 +12,7 @@ class Gradle < Formula
def install
libexec.install %w[bin lib]
if build.with? "all"
libexec.install %w[docs media samples src]
end
libexec.install %w[docs media samples src] if build.with? "all"
bin.install_symlink libexec/"bin/gradle"
end