chore: removed unnecessary null check

This commit is contained in:
Syntriax 2025-04-13 22:23:36 +03:00
parent 70c884acfe
commit 1d292a104e

View File

@ -6,9 +6,6 @@ public static class DelegateHelpers
{
public static void InvokeSafe(this Delegate @delegate, params object?[] args)
{
if (@delegate is null)
return;
foreach (Delegate invocation in @delegate.GetInvocationList())
try { invocation.DynamicInvoke(args); }
catch (Exception exception)