aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib/hbc/url.rb
diff options
context:
space:
mode:
authorMarkus Reiter2017-03-06 21:28:34 +0100
committerMarkus Reiter2017-03-12 00:35:09 +0100
commit3bd4349e8ebfd44ce99beea90a8244ed8da33e8a (patch)
tree41b10d5a60388069eacb9da644fc50da28da504b /Library/Homebrew/cask/lib/hbc/url.rb
parent7a8d782365b615e066bead9b4829f6fce7f375df (diff)
downloadbrew-3bd4349e8ebfd44ce99beea90a8244ed8da33e8a.tar.bz2
Migrate legacy Caskroom.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/url.rb')
-rw-r--r--Library/Homebrew/cask/lib/hbc/url.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/url.rb b/Library/Homebrew/cask/lib/hbc/url.rb
index c09aaa061..1a5101da1 100644
--- a/Library/Homebrew/cask/lib/hbc/url.rb
+++ b/Library/Homebrew/cask/lib/hbc/url.rb
@@ -29,11 +29,8 @@ module Hbc
end
def user_agent
- if @user_agent == :fake
- FAKE_USER_AGENT
- else
- @user_agent
- end
+ return FAKE_USER_AGENT if @user_agent == :fake
+ @user_agent
end
end
end