From 892d0ac5febb943e103e01c863fc934c5663b8ee Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 18 Apr 2019 21:42:42 +0900 Subject: [PATCH] =?UTF-8?q?style:=20don=E2=80=99t=20run=20shellcheck=20on?= =?UTF-8?q?=20specified=20ruby=20file.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Library/Homebrew/style.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"])