diff options
| author | Markus Reiter | 2017-04-27 20:17:06 +0200 |
|---|---|---|
| committer | Markus Reiter | 2017-05-08 13:37:28 +0200 |
| commit | 5828eefd01cd61d2a7fbf439620b21f6f5b3d1b1 (patch) | |
| tree | feff6d0886a8b2523da9d737a79f620e13b0f118 /Library/Homebrew/cask/lib/hbc/cli.rb | |
| parent | f1d4c4be78905be0d5fd83922ff1262ed92ba4e8 (diff) | |
| download | brew-5828eefd01cd61d2a7fbf439620b21f6f5b3d1b1.tar.bz2 | |
Remove `to_s` from some `Pathname`s.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/cli.rb')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli.rb | 2 |
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 aa795fc59..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 |
