mirror of
https://github.com/gosticks/brew.git
synced 2026-08-12 04:30:21 +00:00
style: use parentheses for assignment in conditions
This commit is contained in:
@@ -623,7 +623,7 @@ module Homebrew
|
||||
end
|
||||
|
||||
def split_non_options(argv)
|
||||
if sep = argv.index("--")
|
||||
if (sep = argv.index("--"))
|
||||
[argv.take(sep), argv.drop(sep + 1)]
|
||||
else
|
||||
[argv, []]
|
||||
|
||||
Reference in New Issue
Block a user