From d680a844b603cba797f5f7ac109aaa232a43e104 Mon Sep 17 00:00:00 2001 From: LoisSotoLopez Date: Wed, 24 Jan 2024 10:55:00 +0100 Subject: [PATCH] chore: Move internal function to proper section --- src/ndto_utils.erl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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()},