Simpler completeness checks

This commit is contained in:
Matt Nadareski
2025-08-25 13:23:49 -04:00
parent 2535e82618
commit 1f7ab4fccb
3 changed files with 3 additions and 3 deletions

View File

@@ -108,7 +108,7 @@ namespace SabreTools.Serialization.Wrappers
zipFile = ZipArchive.Open(Filename!, readerOptions);
// If there's any multipart items, try reading the file as well
else if (System.Array.Exists([.. zipFile.Entries], e => !e.IsComplete))
else if (!zipFile.IsComplete)
zipFile = ZipArchive.Open(Filename!, readerOptions);
}

View File

@@ -111,7 +111,7 @@ namespace SabreTools.Serialization.Wrappers
rarFile = RarArchive.Open(Filename!, readerOptions);
// If there's any multipart items, try reading the file as well
else if (System.Array.Exists([.. rarFile.Entries], e => !e.IsComplete))
else if (!rarFile.IsComplete)
rarFile = RarArchive.Open(Filename!, readerOptions);
}

View File

@@ -111,7 +111,7 @@ namespace SabreTools.Serialization.Wrappers
sevenZip = SevenZipArchive.Open(Filename!, readerOptions);
// If there's any multipart items, try reading the file as well
else if (System.Array.Exists([.. sevenZip.Entries], e => !e.IsComplete))
else if (!sevenZip.IsComplete)
sevenZip = SevenZipArchive.Open(Filename!, readerOptions);
}