aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2017-12-24 07:59:17 +0000
committerGitHub2017-12-24 07:59:17 +0000
commitcacefb2b99ee760b98100b7cd3664b84fe01e791 (patch)
tree13ef3b00a0b89cc246a36100ed31b07793b4785f /Library
parent92e62ba5838f8204e511b7ac77fa3dde47bf92db (diff)
downloadbrew-cacefb2b99ee760b98100b7cd3664b84fe01e791.tar.bz2
caveats: tweak root_dir definition style.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/caveats.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/Library/Homebrew/caveats.rb b/Library/Homebrew/caveats.rb
index af784a7f2..ca1c2a9f8 100644
--- a/Library/Homebrew/caveats.rb
+++ b/Library/Homebrew/caveats.rb
@@ -86,11 +86,7 @@ class Caveats
installed << "completions" if completion_installed
installed << "functions" if functions_installed
- if f.keg_only?
- root_dir = f.opt_prefix
- else
- root_dir = HOMEBREW_PREFIX
- end
+ root_dir = f.keg_only? ? f.opt_prefix : HOMEBREW_PREFIX
case shell
when :bash