utils/curl: fix Rubocop warnings.
This commit is contained in:
parent
56b6c43686
commit
3bf5e779ab
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user