diff --git a/Library/Homebrew/bundle/formula_installer.rb b/Library/Homebrew/bundle/formula_installer.rb index 3fe7c9e294..35f918323b 100644 --- a/Library/Homebrew/bundle/formula_installer.rb +++ b/Library/Homebrew/bundle/formula_installer.rb @@ -305,6 +305,8 @@ module Homebrew end # rubocop:enable Naming/PredicateMethod + # Ending with a `!` is more appropriate here given that this affects the state of the user's system. + # rubocop:disable Naming/PredicateMethod def upgrade!(verbose:, force:) upgrade_args = [] upgrade_args << "--force" if force @@ -318,6 +320,7 @@ module Homebrew @changed = true true end + # rubocop:enable Naming/PredicateMethod end end end