Remove one more unnecessary cast

This commit is contained in:
Matt Nadareski
2024-11-12 15:47:49 -05:00
parent 51b77da760
commit 39e56ef864

View File

@@ -1344,10 +1344,7 @@ namespace SabreTools.Serialization.Wrappers
return -1;
// Otherwise, find the section it exists within
return Model.OptionalHeader.AddressOfEntryPoint.ContainingSectionIndex(Model.SectionTable
.Where(sh => sh != null)
.Cast<Models.PortableExecutable.SectionHeader>()
.ToArray());
return Model.OptionalHeader.AddressOfEntryPoint.ContainingSectionIndex(Model.SectionTable);
}
/// <summary>