Fix code style warnings in iso-parser

fixes 5de736af0, 7df0cef0d
This commit is contained in:
YoshiRulz 2025-07-30 03:35:09 +10:00
parent 0cdfec89b3
commit f89949520e
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
3 changed files with 2 additions and 8 deletions

View File

@ -41,7 +41,6 @@ namespace ISOParser
// Read the directory entries // Read the directory entries
while (s.Position < ((this.Offset * ISOFile.SECTOR_SIZE) + this.Length)) while (s.Position < ((this.Offset * ISOFile.SECTOR_SIZE) + this.Length))
{ {
ISONode node;
ISONodeRecord record; ISONodeRecord record;
// Read the record // Read the record
@ -61,12 +60,7 @@ namespace ISOParser
else else
{ {
// Check if we already have this node // Check if we already have this node
if (visited.ContainsKey(record.OffsetOfData)) if (!visited.TryGetValue(record.OffsetOfData, out var node))
{
// Get the node
node = visited[record.OffsetOfData];
}
else
{ {
// Create the node from the record // Create the node from the record
if (record.IsFile()) if (record.IsFile())

View File

@ -4,7 +4,7 @@
</PropertyGroup> </PropertyGroup>
<Import Project="../LibCommon.props" /> <Import Project="../LibCommon.props" />
<PropertyGroup> <PropertyGroup>
<NoWarn>$(NoWarn);MA0060;SA1413;SA1514</NoWarn> <!-- MA0060 is for implicitly discarded Stream.Read return value and should really be fixed; SA1413 and SA1514 are harmless lint rules --> <NoWarn>$(NoWarn);MA0060;RCS1226;SA1413;SA1514</NoWarn> <!-- MA0060 is for implicitly discarded Stream.Read return value and should really be fixed; RCS1226 is for malformed doc comment and should really be fixed; SA1413 and SA1514 are harmless lint rules -->
<Nullable>disable</Nullable> <Nullable>disable</Nullable>
</PropertyGroup> </PropertyGroup>
</Project> </Project>

Binary file not shown.