Fix this being finicky

This commit is contained in:
Matt Nadareski
2025-09-17 12:56:32 -04:00
parent 664e7dce28
commit 5d2cf58477

View File

@@ -298,10 +298,9 @@ namespace SabreTools.Serialization.Wrappers
#endregion
// TODO: Use constants from Models here
#region GZip
if (magic.StartsWith([Models.GZIP.Constants.ID1, Models.GZIP.Constants.ID2]))
if (magic.StartsWith(new byte[] { Models.GZIP.Constants.ID1, Models.GZIP.Constants.ID2 }))
return WrapperType.GZip;
if (extension.Equals("gz", StringComparison.OrdinalIgnoreCase))