Remove repeated conditional

The post-install audit methods are not run for keg-only installs, so we
don't need to repeat the conditional here.
This commit is contained in:
Jack Nagel 2014-10-13 23:13:01 -05:00
parent b46ebf8a29
commit 634d67690b

View File

@ -647,13 +647,13 @@ class FormulaInstaller
end end
def audit_bin def audit_bin
print_check_output(check_PATH(f.bin)) unless f.keg_only? print_check_output(check_PATH(f.bin))
print_check_output(check_non_executables(f.bin)) print_check_output(check_non_executables(f.bin))
print_check_output(check_generic_executables(f.bin)) print_check_output(check_generic_executables(f.bin))
end end
def audit_sbin def audit_sbin
print_check_output(check_PATH(f.sbin)) unless f.keg_only? print_check_output(check_PATH(f.sbin))
print_check_output(check_non_executables(f.sbin)) print_check_output(check_non_executables(f.sbin))
print_check_output(check_generic_executables(f.sbin)) print_check_output(check_generic_executables(f.sbin))
end end