diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index 82fdd38fcba1f..c836d26ddf80f 100644 --- a/Library/Homebrew/extend/pathname.rb +++ b/Library/Homebrew/extend/pathname.rb @@ -471,8 +471,7 @@ def magic_number else # Length of the longest regex (currently Tar). max_magic_number_length = 262 - # FIXME: The `T.let` is a workaround until we have https://github.com/sorbet/sorbet/pull/6865 - T.let(binread(max_magic_number_length), T.nilable(String)) || "" + binread(max_magic_number_length) || "" end end diff --git a/Library/Homebrew/rubocops/cask/mixin/cask_help.rb b/Library/Homebrew/rubocops/cask/mixin/cask_help.rb index 093b93ec61431..b964bbe763a4e 100644 --- a/Library/Homebrew/rubocops/cask/mixin/cask_help.rb +++ b/Library/Homebrew/rubocops/cask/mixin/cask_help.rb @@ -14,13 +14,6 @@ def on_cask(cask_block); end sig { overridable.params(cask_stanza_block: RuboCop::Cask::AST::StanzaBlock).void } def on_cask_stanza_block(cask_stanza_block); end - # FIXME: Workaround until https://github.com/rubocop/rubocop/pull/11858 is released. - def find_end_line(node) - return node.loc.end.line if node.block_type? || node.numblock_type? - - super - end - sig { params(block_node: RuboCop::AST::BlockNode).void } def on_block(block_node) super if defined? super