aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib/hbc/url.rb
diff options
context:
space:
mode:
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