mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-29 01:50:13 +00:00
Return nothing and be happy
This commit is contained in:
@@ -221,6 +221,17 @@ namespace SabreTools.Serialization.Deserializers
|
||||
|
||||
} while (data.Position < data.Length);
|
||||
|
||||
// If no blocks were read
|
||||
if (localFileHeaders.Count == 0
|
||||
&& encryptionHeaders.Count == 0
|
||||
&& fileData.Count == 0
|
||||
&& dataDescriptors.Count == 0
|
||||
&& zip64DataDescriptors.Count == 0
|
||||
&& cdrs.Count == 0)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Assign the local file headers
|
||||
archive.LocalFileHeaders = [.. localFileHeaders];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user