From dfe2b5b2cac55dd0ab358666dc534b4f6d0f2365 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 13 Jun 2024 08:47:59 +0100 Subject: [PATCH] style: tweak style. Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com> --- 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 38d922b9c4..3dc8c05fe9 100644 --- a/Library/Homebrew/style.rb +++ b/Library/Homebrew/style.rb @@ -144,7 +144,7 @@ module Homebrew files&.map!(&:expand_path) if files.blank? || files == [HOMEBREW_REPOSITORY] files = [HOMEBREW_LIBRARY_PATH] - elsif files.any? { |f| (f.to_s.start_with? HOMEBREW_REPOSITORY/"docs") || (f.basename == "docs") } + elsif files.any? { |f| f.to_s.start_with?(HOMEBREW_REPOSITORY/"docs") || (f.basename == "docs") } args << "--config" << (HOMEBREW_REPOSITORY/"docs/.rubocop.yml") elsif files.none? { |f| f.to_s.start_with? HOMEBREW_LIBRARY_PATH } args << "--config" << (HOMEBREW_LIBRARY/".rubocop.yml")