diff --git a/src/ndto_utils.erl b/src/ndto_utils.erl index 5925279..5aa1ade 100644 --- a/src/ndto_utils.erl +++ b/src/ndto_utils.erl @@ -84,11 +84,6 @@ evaluate_conditions(FunctionName, {ConditionsType, Conditions}, EvalueMode, _IsS }} end. -internal_evaluate_conditions(fun_call, [Fun | Rest], EvalueMode) -> - next_evaluate_condition(fun_call, Fun(), Rest, EvalueMode); -internal_evaluate_conditions(mfa_call, [{Function, Args} | Rest], EvalueMode) -> - next_evaluate_condition(mfa_call, Function(Args), Rest, EvalueMode). - -spec mfoldl(Fun, Acc, List) -> Resp when Fun :: function(), Acc :: term(), @@ -148,6 +143,11 @@ format_properties([Head | List]) -> %%%----------------------------------------------------------------------------- %%% INTERNAL FUNCTIONS %%%----------------------------------------------------------------------------- +internal_evaluate_conditions(fun_call, [Fun | Rest], EvalueMode) -> + next_evaluate_condition(fun_call, Fun(), Rest, EvalueMode); +internal_evaluate_conditions(mfa_call, [{Function, Args} | Rest], EvalueMode) -> + next_evaluate_condition(mfa_call, Function(Args), Rest, EvalueMode). + -spec next_evaluate_condition(ConditionsType, CurrentResult, Conditions, EvalueMode) -> Resp when ConditionsType :: fun_call | mfa_call, CurrentResult :: true | {false, term()},