Code/style cleanup

This commit is contained in:
JustArchi
2019-02-16 17:34:17 +01:00
parent 2e375b8913
commit b677ba8202
78 changed files with 145 additions and 159 deletions

View File

@@ -1,4 +1,4 @@
// _ _ _ ____ _ _____
// _ _ _ ____ _ _____
// / \ _ __ ___ | |__ (_)/ ___| | |_ ___ __ _ _ __ ___ | ___|__ _ _ __ _ __ ___
// / _ \ | '__|/ __|| '_ \ | |\___ \ | __|/ _ \ / _` || '_ ` _ \ | |_ / _` || '__|| '_ ` _ \
// / ___ \ | | | (__ | | | || | ___) || |_| __/| (_| || | | | | || _|| (_| || | | | | | | |
@@ -418,11 +418,7 @@ namespace ArchiSteamFarm {
ourFullSet[ourItem] = ourAmount - 1; // We don't need to remove anything here because we can guarantee that ourItem.Value is at least 2
if (inventoryStateChanges.TryGetValue(set, out Dictionary<ulong, uint> currentChanges)) {
if (currentChanges.TryGetValue(ourItem, out uint amount)) {
currentChanges[ourItem] = amount + 1;
} else {
currentChanges[ourItem] = 1;
}
currentChanges[ourItem] = currentChanges.TryGetValue(ourItem, out uint amount) ? amount + 1 : 1;
} else {
inventoryStateChanges[set] = new Dictionary<ulong, uint> {
{ ourItem, 1 }