[Refactor] Use collection expressions.

This commit is contained in:
2024-05-01 04:39:38 +01:00
parent f7ca79b09e
commit 134ce7041e
667 changed files with 12936 additions and 13750 deletions

View File

@@ -75,8 +75,8 @@ public sealed class ErrorLog
}
else
{
List<string> error = new();
List<string> status = new();
List<string> error = [];
List<string> status = [];
if((registers.Status & 0x01) == 0x01) status.Add("ERR");
@@ -141,8 +141,8 @@ public sealed class ErrorLog
}
else
{
List<string> error = new();
List<string> status = new();
List<string> error = [];
List<string> status = [];
if((registers.Status & 0x01) == 0x01) status.Add("ERR");
@@ -201,8 +201,8 @@ public sealed class ErrorLog
}
else
{
List<string> error = new();
List<string> status = new();
List<string> error = [];
List<string> status = [];
if((registers.Status & 0x01) == 0x01) status.Add("ERR");
@@ -259,8 +259,8 @@ public sealed class ErrorLog
}
else
{
List<string> error = new();
List<string> status = new();
List<string> error = [];
List<string> status = [];
if((registers.Status & 0x01) == 0x01) status.Add("ERR");