mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-10 18:24:53 +00:00
fix: Removing bad validation
This commit is contained in:
@@ -14,9 +14,6 @@ namespace ICD.Common.Utils.Extensions
|
||||
/// <param name="sender"></param>
|
||||
public static void Raise(this EventHandler extends, object sender)
|
||||
{
|
||||
if (sender == null)
|
||||
throw new ArgumentNullException("sender");
|
||||
|
||||
if (extends != null)
|
||||
extends(sender, EventArgs.Empty);
|
||||
}
|
||||
@@ -31,9 +28,6 @@ namespace ICD.Common.Utils.Extensions
|
||||
public static void Raise<T>(this EventHandler<T> extends, object sender, T args)
|
||||
where T : EventArgs
|
||||
{
|
||||
if (sender == null)
|
||||
throw new ArgumentNullException("sender");
|
||||
|
||||
if (args == null)
|
||||
throw new ArgumentNullException("args");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user