aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib
diff options
context:
space:
mode:
authorEsther W2017-05-18 13:41:36 -0700
committerEsther W2017-05-18 13:41:36 -0700
commit4da2f24b0ee819475daae14a839d953777767e8c (patch)
tree22e6b9b549f1d235865153a406815ba2ae92e873 /Library/Homebrew/cask/lib
parent37222c195364e3e1c04ee8675a5f0470c2284713 (diff)
downloadbrew-4da2f24b0ee819475daae14a839d953777767e8c.tar.bz2
Remove to_s method
Diffstat (limited to 'Library/Homebrew/cask/lib')
-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 c8fe39171..37784f4c3 100644
--- a/Library/Homebrew/cask/lib/hbc/cli.rb
+++ b/Library/Homebrew/cask/lib/hbc/cli.rb
@@ -113,7 +113,7 @@ module Hbc
if command.respond_to?(:run)
# usual case: built-in command verb
command.run(*rest)
- elsif require?(which("brewcask-#{command}.rb").to_s)
+ elsif require?(which("brewcask-#{command}.rb"))
# external command as Ruby library on PATH, Homebrew-style
elsif command.to_s.include?("/") && require?(command.to_s)
# external command as Ruby library with literal path, useful