diff --git a/Library/Homebrew/extend/os/mac/unpack_strategy/zip.rb b/Library/Homebrew/extend/os/mac/unpack_strategy/zip.rb index 7da213be6b..b9c07431ce 100644 --- a/Library/Homebrew/extend/os/mac/unpack_strategy/zip.rb +++ b/Library/Homebrew/extend/os/mac/unpack_strategy/zip.rb @@ -26,7 +26,7 @@ module UnpackStrategy end result = begin - T.let(super, SystemCommand::Result) + T.let(super, T.nilable(SystemCommand::Result)) rescue ErrorDuringExecution => e raise unless e.stderr.include?("End-of-central-directory signature not found.")