mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix: ignore dotnet compiler warning in WebhookExecutorService
This commit is contained in:
parent
b376279b9b
commit
9160e58c0c
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue