Minor cleanups

This commit is contained in:
Jordan Brown
2020-04-11 22:41:26 -04:00
parent fa12f04615
commit d71efee9a7
2 changed files with 4 additions and 4 deletions
@@ -19,7 +19,7 @@ namespace Tgstation.Server.Api.Models
.GetField(errorCode.ToString())
?.GetCustomAttributes(typeof(DescriptionAttribute), false);
return attributes.FirstOrDefault()?.Description;
return attributes?.FirstOrDefault()?.Description;
}
}
}
@@ -129,9 +129,9 @@ namespace Tgstation.Server.Host.Watchdog
var arguments = new List<string>
{
'"' + assemblyPath + '"',
'"' + updateDirectory + '"',
'"' + watchdogVersion + '"'
$"\"{assemblyPath}\"",
$"\"{updateDirectory}\"",
$"\"{watchdogVersion}\""
};
if (args.Any(x => x.Equals("--attach-host-debugger", StringComparison.OrdinalIgnoreCase)))