mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
resolve_conflicts!: ignore Naming/PredicateMethod error
Ending the name with a `!` is more appropriate here.
This commit is contained in:
parent
a09803fab8
commit
93c0574d71
@ -260,6 +260,9 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
# Ending with a `!` is more appropriate here given that this affects the state of the user's system.
|
||||||
|
# rubocop:disable Naming/PredicateMethod
|
||||||
def resolve_conflicts!(verbose:)
|
def resolve_conflicts!(verbose:)
|
||||||
conflicts_with.each do |conflict|
|
conflicts_with.each do |conflict|
|
||||||
next unless FormulaInstaller.formula_installed?(conflict)
|
next unless FormulaInstaller.formula_installed?(conflict)
|
||||||
@ -281,6 +284,7 @@ module Homebrew
|
|||||||
|
|
||||||
true
|
true
|
||||||
end
|
end
|
||||||
|
# rubocop:enable Naming/PredicateMethod
|
||||||
|
|
||||||
def install!(verbose:, force:)
|
def install!(verbose:, force:)
|
||||||
install_args = @args.dup
|
install_args = @args.dup
|
||||||
|
Loading…
x
Reference in New Issue
Block a user