fix RunRouteAction methods

This commit is contained in:
Andrew Welker
2020-07-29 14:42:26 -06:00
parent 383777c0f5
commit dbafce0aa8

View File

@@ -405,12 +405,7 @@ namespace PepperDash.Essentials
/// <param name="successCallback"></param> /// <param name="successCallback"></param>
public void RunRouteAction(string routeKey, string sourceListKey) public void RunRouteAction(string routeKey, string sourceListKey)
{ {
if (string.IsNullOrEmpty(sourceListKey)) RunRouteAction(routeKey, new Action(() => { }));
{
RunRouteAction(routeKey, new Action(() => { }));
}
else
throw new NotImplementedException();
} }
/// <summary> /// <summary>
@@ -421,12 +416,8 @@ namespace PepperDash.Essentials
/// <param name="successCallback"></param> /// <param name="successCallback"></param>
public void RunRouteAction(string routeKey, string sourceListKey, Action successCallback) public void RunRouteAction(string routeKey, string sourceListKey, Action successCallback)
{ {
if (string.IsNullOrEmpty(sourceListKey))
{
RunRouteAction(routeKey, successCallback); RunRouteAction(routeKey, successCallback);
}
else
throw new NotImplementedException();
} }
/// <summary> /// <summary>