Fix some disposable patterns

This commit is contained in:
JustArchi
2020-04-18 14:08:37 +02:00
parent b5ae8eafba
commit 63c8a6540e
8 changed files with 25 additions and 19 deletions

View File

@@ -83,7 +83,7 @@ namespace ArchiSteamFarm {
}
private async Task<bool?> IsDiscoveryQueueAvailable() {
IDocument htmlDocument = await Bot.ArchiWebHandler.GetDiscoveryQueuePage().ConfigureAwait(false);
using IDocument htmlDocument = await Bot.ArchiWebHandler.GetDiscoveryQueuePage().ConfigureAwait(false);
if (htmlDocument == null) {
return null;