Use string interpolation wherever possible

Majority of cases still need to go through string.Format() due to localization requirements
This commit is contained in:
Archi
2021-09-27 19:59:00 +02:00
parent de19010820
commit f2d3a2a894
29 changed files with 160 additions and 160 deletions

View File

@@ -37,10 +37,10 @@ namespace ArchiSteamFarm.Core {
internal sealed class DebugListener : IDebugListener {
public void WriteLine(string category, string msg) {
if (string.IsNullOrEmpty(category) && string.IsNullOrEmpty(msg)) {
throw new InvalidOperationException(nameof(category) + " && " + nameof(msg));
throw new InvalidOperationException($"{nameof(category)} && {nameof(msg)}");
}
ASF.ArchiLogger.LogGenericDebug(category + " | " + msg);
ASF.ArchiLogger.LogGenericDebug($"{category} | {msg}");
}
}
}