diff options
| author | Mike McQuaid | 2016-09-11 17:47:04 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-09-11 19:13:00 +0100 |
| commit | 3bf5e779ab04bf399963183eb59f815b5df77c5d (patch) | |
| tree | 06709206d51c4b356ec7c7b64dc85d2f7de5cdab /Library/Homebrew/utils/curl.rb | |
| parent | 56b6c43686be4710af7ddfeee06d456abc3aa0cf (diff) | |
| download | brew-3bf5e779ab04bf399963183eb59f815b5df77c5d.tar.bz2 | |
utils/curl: fix Rubocop warnings.
Diffstat (limited to 'Library/Homebrew/utils/curl.rb')
| -rw-r--r-- | Library/Homebrew/utils/curl.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/utils/curl.rb b/Library/Homebrew/utils/curl.rb index 68474c976..00c3a591c 100644 --- a/Library/Homebrew/utils/curl.rb +++ b/Library/Homebrew/utils/curl.rb @@ -1,7 +1,7 @@ require "pathname" require "open3" -def curl_args(extra_args=[]) +def curl_args(extra_args = []) curl = Pathname.new ENV["HOMEBREW_CURL"] curl = Pathname.new "/usr/bin/curl" unless curl.exist? raise "#{curl} is not executable" unless curl.exist? && curl.executable? @@ -9,7 +9,7 @@ def curl_args(extra_args=[]) flags = HOMEBREW_CURL_ARGS flags -= ["--progress-bar"] if ARGV.verbose? - args = ["#{curl}"] + flags + extra_args + args = [curl.to_s] + flags + extra_args args << "--verbose" if ENV["HOMEBREW_CURL_VERBOSE"] args << "--silent" if !$stdout.tty? || ENV["TRAVIS"] args |
