mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
write_names: ignore Naming/PredicateMethod error
This is not a predicate method.
This commit is contained in:
parent
d5b335a977
commit
a09803fab8
@ -92,11 +92,14 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
sig { params(regenerate: T::Boolean).void }
|
sig { params(regenerate: T::Boolean).void }
|
||||||
|
# This is not a predicate method (return type is `void`).
|
||||||
|
# rubocop:disable Naming/PredicateMethod
|
||||||
def self.write_names(regenerate: false)
|
def self.write_names(regenerate: false)
|
||||||
download_and_cache_data! unless cache.key?("casks")
|
download_and_cache_data! unless cache.key?("casks")
|
||||||
|
|
||||||
Homebrew::API.write_names_file?(all_casks.keys, "cask", regenerate:)
|
Homebrew::API.write_names_file?(all_casks.keys, "cask", regenerate:)
|
||||||
end
|
end
|
||||||
|
# rubocop:enable Naming/PredicateMethod
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user