diff --git a/ICD.Common.Utils/Extensions/DateTimeExtensions.cs b/ICD.Common.Utils/Extensions/DateTimeExtensions.cs
index 63ca40f..3fe9e92 100644
--- a/ICD.Common.Utils/Extensions/DateTimeExtensions.cs
+++ b/ICD.Common.Utils/Extensions/DateTimeExtensions.cs
@@ -34,13 +34,12 @@ namespace ICD.Common.Utils.Extensions
/// Returns the closest DateTime to the target time that is greater than the target time
///
///
- ///
- ///
+ ///
///
public static DateTime? NextEarliestTime(this DateTime target, params DateTime[] times)
{
- if (times.Length == 0)
- return null;
+ if (times == null)
+ throw new ArgumentNullException("times");
DateTime earliestTime;
bool success = times.OrderBy(dt => dt).TryFirst(dt => target < dt, out earliestTime);
@@ -51,13 +50,12 @@ namespace ICD.Common.Utils.Extensions
/// Returns the closest DateTime to the target time that is less than the target time
///
///
- ///
- ///
+ ///
///
public static DateTime? PreviousLatestTime(this DateTime target, params DateTime[] times)
{
- if (times.Length == 0)
- return null;
+ if (times == null)
+ throw new ArgumentNullException("null");
DateTime latestTime;
bool success = times.OrderByDescending(dt => dt).TryFirst(dt => target > dt, out latestTime);
diff --git a/ICD.Common.Utils/Services/Scheduler/IScheduledAction.cs b/ICD.Common.Utils/Services/Scheduler/IScheduledAction.cs
index cacdfd6..16753b9 100644
--- a/ICD.Common.Utils/Services/Scheduler/IScheduledAction.cs
+++ b/ICD.Common.Utils/Services/Scheduler/IScheduledAction.cs
@@ -1,5 +1,4 @@
using System;
-using ICD.Common.Utils.EventArguments;
namespace ICD.Common.Utils.Services.Scheduler
{
@@ -17,4 +16,4 @@ namespace ICD.Common.Utils.Services.Scheduler
void Run();
}
-}
\ No newline at end of file
+}