Skip to content

Commit a09803f

Browse files
committed
write_names: ignore Naming/PredicateMethod error
This is not a predicate method.
1 parent d5b335a commit a09803f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Library/Homebrew/api/cask.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,14 @@ def self.all_renames
9292
end
9393

9494
sig { params(regenerate: T::Boolean).void }
95+
# This is not a predicate method (return type is `void`).
96+
# rubocop:disable Naming/PredicateMethod
9597
def self.write_names(regenerate: false)
9698
download_and_cache_data! unless cache.key?("casks")
9799

98100
Homebrew::API.write_names_file?(all_casks.keys, "cask", regenerate:)
99101
end
102+
# rubocop:enable Naming/PredicateMethod
100103
end
101104
end
102105
end

0 commit comments

Comments
 (0)