mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Fix empty string staying in dictionary (#1967)
* Fix empty string staying in dictionary * Increase consistency and remove null-forgiving operator
This commit is contained in:
@@ -1518,8 +1518,8 @@ namespace ArchiSteamFarm {
|
||||
ASF.ArchiLogger.LogGenericWarning(string.Format(Strings.ErrorIsInvalid, nameof(name)));
|
||||
}
|
||||
|
||||
if (invalid && !string.IsNullOrEmpty(key)) {
|
||||
invalidKeys.Add(key!);
|
||||
if (invalid && key != null) {
|
||||
invalidKeys.Add(key);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user