Flatten some of the printing code

This commit is contained in:
Matt Nadareski
2023-09-13 10:32:02 -04:00
parent c49ae98df5
commit 133272acb7
2 changed files with 7 additions and 6 deletions

View File

@@ -26,14 +26,14 @@ namespace BinaryObjectScanner.Printing
if (records == null || records.Length == 0)
{
builder.AppendLine(" No records");
builder.AppendLine();
return;
}
else
for (int i = 0; i < records.Length; i++)
{
for (int i = 0; i < records.Length; i++)
{
var record = records[i];
Print(builder, record, i);
}
var record = records[i];
Print(builder, record, i);
}
builder.AppendLine();
}

View File

@@ -26,6 +26,7 @@ namespace BinaryObjectScanner.Printing
if (header == null)
{
builder.AppendLine(" No header");
builder.AppendLine();
return;
}