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
No known key found for this signature in database
GPG Key ID: 244A11E4B0BCF40E

View File

@ -174,7 +174,9 @@ public class WebhookExecutorService
{ {
// this exception is expected, see comment above // this exception is expected, see comment above
if (ex.GetType() == typeof(ProxyService.ProxyChecksFailedException)) if (ex.GetType() == typeof(ProxyService.ProxyChecksFailedException))
#pragma warning disable CA2200
throw ex; throw ex;
#pragma warning restore CA2200
else else
// if something breaks, just ignore it and throw the original exception // if something breaks, just ignore it and throw the original exception
throw e; throw e;
@ -195,7 +197,9 @@ public class WebhookExecutorService
catch (Exception ex) catch (Exception ex)
{ {
if (ex.GetType() == typeof(ProxyService.ProxyChecksFailedException)) if (ex.GetType() == typeof(ProxyService.ProxyChecksFailedException))
#pragma warning disable CA2200
throw ex; throw ex;
#pragma warning restore CA2200
else else
throw e; throw e;
} }