Various code linting changes

This commit is contained in:
Chomp
2025-01-18 11:49:21 +00:00
parent e926379b4a
commit 566deba507
23 changed files with 213 additions and 198 deletions
+6 -4
View File
@@ -59,9 +59,11 @@ public class ItemEventCallbacks
public int? GetErrorCode(List<Warning> warnings)
{
if (warnings[0].Code != null)
return int.Parse(warnings[0]?.Code);
return int.Parse(BackendErrorCodes.UNKNOWN_ERROR.ToString());
if (warnings[0].Code is null)
{
return int.Parse(BackendErrorCodes.UNKNOWN_ERROR.ToString());
}
return int.Parse(warnings[0]?.Code);
}
}