chore: removed unnecessary null check
This commit is contained in:
parent
70c884acfe
commit
1d292a104e
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user