diff --git a/Library/Homebrew/cask/artifact_set.rb b/Library/Homebrew/cask/artifact_set.rb index c4d466df3e..b92d1eeaf9 100644 --- a/Library/Homebrew/cask/artifact_set.rb +++ b/Library/Homebrew/cask/artifact_set.rb @@ -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 diff --git a/Library/Homebrew/utils/tty.rb b/Library/Homebrew/utils/tty.rb index ddb7da3824..b95317bbb8 100644 --- a/Library/Homebrew/utils/tty.rb +++ b/Library/Homebrew/utils/tty.rb @@ -118,5 +118,5 @@ module Tty @stream.tty? end -end + end end