Simplify LogNullError calls (#2554)

* Remove necessity of nameof(...) in calls to ArchiLogger.LogNullError(...)

* Upgrade Madness

* Upgrade Madness

* Split up compound null log statements
This commit is contained in:
Sebastian Göls
2022-04-13 23:16:36 +02:00
committed by GitHub
parent 2326196e01
commit b8bfcd5df3
26 changed files with 186 additions and 162 deletions

View File

@@ -95,7 +95,7 @@ public sealed class TypeController : ArchiController {
string? valueText = value?.ToString();
if (string.IsNullOrEmpty(valueText)) {
ASF.ArchiLogger.LogNullError(nameof(valueText));
ASF.ArchiLogger.LogNullError(valueText);
return BadRequest(new GenericResponse(false, string.Format(CultureInfo.CurrentCulture, Strings.ErrorObjectIsNull, nameof(valueText))));
}