Skip to content

Commit

Permalink
Fix harmless error
Browse files Browse the repository at this point in the history
  • Loading branch information
JustArchi committed Jun 2, 2016
1 parent bcd3103 commit fadb9c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ArchiSteamFarm/Trading.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ internal async Task CheckTrades() {
}

private async Task ParseActiveTrades() {
if (string.IsNullOrEmpty(Bot.BotConfig.SteamApiKey)) {
return;
}

HashSet<Steam.TradeOffer> tradeOffers = Bot.ArchiWebHandler.GetTradeOffers();
if ((tradeOffers == null) || (tradeOffers.Count == 0)) {
return;
Expand Down

0 comments on commit fadb9c4

Please sign in to comment.