brew style --fix

This commit is contained in:
Mike McQuaid 2023-02-24 13:50:07 +00:00
parent 40f286fc42
commit e95ce6967a
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829
2 changed files with 1 additions and 4 deletions

View File

@ -9,10 +9,7 @@ module Cask
# @api private
class ArtifactSet < ::Set
def each(&block)
# TODO: This is a false positive: https://github.com/rubocop/rubocop/issues/11591
# rubocop:disable Lint/ToEnumArguments
return enum_for(T.must(__method__)) { size } unless block
# rubocop:enable Lint/ToEnumArguments
to_a.each(&block)
self

View File

@ -118,5 +118,5 @@ module Tty
@stream.tty?
end
end
end
end