Skip to content

Commit 3ca4f2c

Browse files
Copilotgfs
andcommitted
Simplify redundant ARC magic byte check
Co-authored-by: gfs <98900+gfs@users.noreply.github.com>
1 parent 70714c4 commit 3ca4f2c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

RecursiveExtractor/MiniMagic.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public static ArchiveFileType DetectFileType(Stream fileStream)
188188
}
189189
// ARC archive format https://en.wikipedia.org/wiki/ARC_(file_format)
190190
// First byte is marker 0x1A, second byte is compression method (0x00-0x0B valid for standard ARC)
191-
if (buffer[0] == 0x1A && buffer[1] >= 0x00 && buffer[1] <= 0x0B)
191+
if (buffer[0] == 0x1A && buffer[1] <= 0x0B)
192192
{
193193
return ArchiveFileType.ARC;
194194
}

0 commit comments

Comments
 (0)