Code cleanup

This commit is contained in:
JustArchi
2019-04-10 23:15:34 +02:00
parent 13fdb0cb77
commit b524758017
2 changed files with 53 additions and 53 deletions

View File

@@ -170,7 +170,7 @@ namespace ArchiSteamFarm {
return;
}
HashSet<Steam.Asset> inventory = await Bot.ArchiWebHandler.GetInventory(Bot.SteamID, tradable: true, wantedTypes: acceptedMatchableTypes).ConfigureAwait(false);
HashSet<Steam.Asset> inventory = await Bot.ArchiWebHandler.GetInventory(tradable: true, wantedTypes: acceptedMatchableTypes).ConfigureAwait(false);
if (inventory == null) {
// This is actually inventory failure, so we'll stop sending heartbeats but not record it as valid check
@@ -335,7 +335,7 @@ namespace ArchiSteamFarm {
return false;
}
HashSet<Steam.Asset> ourInventory = await Bot.ArchiWebHandler.GetInventory(Bot.SteamID, wantedTypes: acceptedMatchableTypes).ConfigureAwait(false);
HashSet<Steam.Asset> ourInventory = await Bot.ArchiWebHandler.GetInventory(wantedTypes: acceptedMatchableTypes).ConfigureAwait(false);
if ((ourInventory == null) || (ourInventory.Count == 0)) {
Bot.ArchiLogger.LogGenericTrace(string.Format(Strings.ErrorIsEmpty, nameof(ourInventory)));