Skip to content

Commit

Permalink
chore: Move internal function to proper section
Browse files Browse the repository at this point in the history
  • Loading branch information
LoisSotoLopez committed Jan 24, 2024
1 parent b380a8d commit d680a84
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ndto_utils.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -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()},
Expand Down

0 comments on commit d680a84

Please sign in to comment.