From 9160e58c0c9eba9694b3324a6d1c700829349484 Mon Sep 17 00:00:00 2001 From: spiral Date: Thu, 3 Nov 2022 23:53:35 +0000 Subject: [PATCH] fix: ignore dotnet compiler warning in WebhookExecutorService --- PluralKit.Bot/Services/WebhookExecutorService.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PluralKit.Bot/Services/WebhookExecutorService.cs b/PluralKit.Bot/Services/WebhookExecutorService.cs index 0ff51b01..73e4430d 100644 --- a/PluralKit.Bot/Services/WebhookExecutorService.cs +++ b/PluralKit.Bot/Services/WebhookExecutorService.cs @@ -174,7 +174,9 @@ public class WebhookExecutorService { // this exception is expected, see comment above if (ex.GetType() == typeof(ProxyService.ProxyChecksFailedException)) +#pragma warning disable CA2200 throw ex; +#pragma warning restore CA2200 else // if something breaks, just ignore it and throw the original exception throw e; @@ -195,7 +197,9 @@ public class WebhookExecutorService catch (Exception ex) { if (ex.GetType() == typeof(ProxyService.ProxyChecksFailedException)) +#pragma warning disable CA2200 throw ex; +#pragma warning restore CA2200 else throw e; }