diff --git a/Library/Homebrew/style.rb b/Library/Homebrew/style.rb index f2ce76b0ee..f4d53e5a1b 100644 --- a/Library/Homebrew/style.rb +++ b/Library/Homebrew/style.rb @@ -100,7 +100,7 @@ module Homebrew raise "Invalid output_type for check_style_impl: #{output_type}" end - return !rubocop_success if !files.nil? && !has_non_formula + return !rubocop_success if files.present? || !has_non_formula shellcheck = which("shellcheck") shellcheck ||= which("shellcheck", ENV["HOMEBREW_PATH"])