aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Homebrew/download_strategy.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 99897ff84..d5db8bc6e 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -459,11 +459,7 @@ class MercurialDownloadStrategy < AbstractDownloadStrategy
def cached_location; @clone; end
def hgpath
- @path ||= if which "hg"
- 'hg'
- else
- "#{HOMEBREW_PREFIX}/bin/hg"
- end
+ @path ||= (which "hg" || "#{HOMEBREW_PREFIX}/bin/hg")
end
def fetch