Add note re: `IHawkArchiveFile.Scan` returning null

see 0f2194475
This commit is contained in:
YoshiRulz 2022-05-30 07:27:53 +10:00
parent b3d344b002
commit f983fce9ff
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 1 additions and 1 deletions
src/BizHawk.Client.Common

View File

@ -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;