From 13d544e11e92ba8ea3788723432046f8dfe4adf9 Mon Sep 17 00:00:00 2001 From: BrewTestBot Date: Mon, 3 Aug 2015 13:09:07 +0100 Subject: Core files style updates. Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid --- Library/Homebrew/cmd/command.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Homebrew/cmd/command.rb') diff --git a/Library/Homebrew/cmd/command.rb b/Library/Homebrew/cmd/command.rb index c2ea96dab..6dce00e32 100644 --- a/Library/Homebrew/cmd/command.rb +++ b/Library/Homebrew/cmd/command.rb @@ -3,7 +3,7 @@ module Homebrew cmd = ARGV.first cmd = HOMEBREW_INTERNAL_COMMAND_ALIASES.fetch(cmd, cmd) - if (path = HOMEBREW_LIBRARY_PATH/"cmd/#{cmd}.rb"; path.file?) + if (path = HOMEBREW_LIBRARY_PATH/"cmd/#{cmd}.rb" && path.file?) puts path elsif (path = which("brew-#{cmd}") || which("brew-#{cmd}.rb")) puts path -- cgit v1.2.3