diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index ca61e8d3f1..d83c5fc39f 100644 --- a/Library/Homebrew/extend/pathname.rb +++ b/Library/Homebrew/extend/pathname.rb @@ -472,9 +472,10 @@ class Pathname @magic_number ||= if directory? "" else + max_magic_number_length = 262 # Length of the longest regex (currently Tar). - # The `T.let` is a workaround until we have https://github.com/sorbet/sorbet/pull/6865 - T.let(binread(262), T.nilable(String)) || "" + # 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)) || "" end end