mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Update Library/Homebrew/extend/pathname.rb
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
91afda651a
commit
9ba677f6d4
@ -472,8 +472,8 @@ class Pathname
|
||||
@magic_number ||= if directory?
|
||||
""
|
||||
else
|
||||
max_magic_number_length = 262
|
||||
# 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)) || ""
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user