fix: ignore dotnet compiler warning in WebhookExecutorService
This commit is contained in:
parent
b376279b9b
commit
9160e58c0c
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user