style: use parentheses for assignment in conditions

This commit is contained in:
nandahkrishna
2021-02-12 18:33:37 +05:30
parent f9b4b69f27
commit 8e5451df2f
41 changed files with 91 additions and 95 deletions
+1 -1
View File
@@ -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, []]