mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 07:59:02 +08:00
upgrade!: ignore Naming/PredicateMethod error
This commit is contained in:
parent
34b0cef167
commit
cc25e0aa62
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user