aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorL. E. Segovia2017-10-21 15:43:20 -0300
committerL. E. Segovia2017-10-21 15:43:20 -0300
commita8ee54a35fb976ad142b1a21a718d43351ea6268 (patch)
tree651df6829de4409184a1f81c65c694c57d115d0f
parent10cbc77af9cd4b6c9f69f28ccf87f24359a771fc (diff)
downloadbrew-a8ee54a35fb976ad142b1a21a718d43351ea6268.tar.bz2
Actually check that the command name was set before adding it to args
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli.rb b/Library/Homebrew/cask/lib/hbc/cli.rb
index 7f59954b5..92f0333ad 100644
--- a/Library/Homebrew/cask/lib/hbc/cli.rb
+++ b/Library/Homebrew/cask/lib/hbc/cli.rb
@@ -154,7 +154,7 @@ module Hbc
def run
command_name, *args = detect_command_and_arguments(*@args)
command = if help?
- args.unshift(command_name) unless command_name.nil
+ args.unshift(command_name) unless command_name.nil?
"help"
else
self.class.lookup_command(command_name)