fix: ignore dotnet compiler warning in WebhookExecutorService

This commit is contained in:
spiral
2022-11-03 23:53:35 +00:00
parent b376279b9b
commit 9160e58c0c

View File

@@ -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;
}