mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-06 17:10:13 +00:00
Code/style cleanup
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user