From e95ce6967a81b558b41627763a372964fb1c8d48 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 24 Feb 2023 13:50:07 +0000 Subject: [PATCH] brew style --fix --- Library/Homebrew/cask/artifact_set.rb | 3 --- Library/Homebrew/utils/tty.rb | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) 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