From f983fce9ffa7c614869e63de827c65ff119940d4 Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Mon, 30 May 2022 07:27:53 +1000 Subject: [PATCH] Add note re: `IHawkArchiveFile.Scan` returning null see 0f2194475 --- src/BizHawk.Client.Common/SharpCompressArchiveFile.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BizHawk.Client.Common/SharpCompressArchiveFile.cs b/src/BizHawk.Client.Common/SharpCompressArchiveFile.cs index 9c8f55e95f..13f0c4112b 100644 --- a/src/BizHawk.Client.Common/SharpCompressArchiveFile.cs +++ b/src/BizHawk.Client.Common/SharpCompressArchiveFile.cs @@ -49,7 +49,7 @@ namespace BizHawk.Client.Common for (var i = 0; i < entries.Count; i++) { var (entry, archiveIndex) = entries[i]; - if (entry.Key == null) return null; + if (entry.Key is null) return null; // see https://github.com/adamhathcock/sharpcompress/issues/137 outFiles.Add(new HawkArchiveFileItem(entry.Key.Replace('\\', '/'), size: entry.Size, index: i, archiveIndex: archiveIndex)); } return outFiles;