mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-02-17 05:45:14 +00:00
Flatten some of the printing code
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -26,6 +26,7 @@ namespace BinaryObjectScanner.Printing
|
||||
if (header == null)
|
||||
{
|
||||
builder.AppendLine(" No header");
|
||||
builder.AppendLine();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user