From 467eb453dbf91137557cdaff7deb3cb79d61b6d7 Mon Sep 17 00:00:00 2001 From: kaso17 Date: Sat, 10 Dec 2016 11:17:56 +0100 Subject: [PATCH] IWebClient: disable warning --- src/Jackett/Utils/Clients/IWebClient.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Jackett/Utils/Clients/IWebClient.cs b/src/Jackett/Utils/Clients/IWebClient.cs index ad1fb6722..2fc68552a 100644 --- a/src/Jackett/Utils/Clients/IWebClient.cs +++ b/src/Jackett/Utils/Clients/IWebClient.cs @@ -86,7 +86,9 @@ namespace Jackett.Utils.Clients return stringResult; } - virtual protected async Task Run(WebRequest webRequest) { return null; } +#pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously + virtual protected async Task Run(WebRequest webRequest) { throw new NotImplementedException(); } +#pragma warning restore CS1998 // Async method lacks 'await' operators and will run synchronously abstract public void Init(); }