IWebClient: disable warning

This commit is contained in:
kaso17 2016-12-10 11:17:56 +01:00
parent 7c0e22258a
commit 467eb453db
1 changed files with 3 additions and 1 deletions

View File

@ -86,7 +86,9 @@ namespace Jackett.Utils.Clients
return stringResult; return stringResult;
} }
virtual protected async Task<WebClientByteResult> Run(WebRequest webRequest) { return null; } #pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously
virtual protected async Task<WebClientByteResult> Run(WebRequest webRequest) { throw new NotImplementedException(); }
#pragma warning restore CS1998 // Async method lacks 'await' operators and will run synchronously
abstract public void Init(); abstract public void Init();
} }