Update src/SharpCompress/Archives/AbstractArchive.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Adam Hathcock
2025-10-21 13:55:56 +01:00
committed by GitHub
parent 84e03b1b27
commit e960907698

View File

@@ -144,7 +144,7 @@ public abstract class AbstractArchive<TEntry, TVolume> : IArchive, IArchiveExtra
/// <returns></returns>
public IReader ExtractAllEntries()
{
if (IsSolid == false && Type != ArchiveType.SevenZip)
if (!IsSolid && Type != ArchiveType.SevenZip)
{
throw new InvalidOperationException(
"ExtractAllEntries can only be used on solid archives or 7Zip archives (which require random access)."