fix(deps): fix function clause at apply_new_config

This commit is contained in:
wwhai 2021-04-28 19:38:14 +08:00 committed by turtleDeng
parent fbe15859f5
commit 54dc75ed79
1 changed files with 3 additions and 1 deletions

View File

@ -322,6 +322,8 @@ apply_new_config(Actions, Configs) ->
apply_new_config([], _Configs, Acc) ->
Acc;
apply_new_config(Actions, [], []) ->
Actions;
apply_new_config([Action = #{<<"name">> := <<"data_to_webserver">>,
<<"args">> := #{<<"$resource">> := ID,
<<"path">> := Path,
@ -678,7 +680,7 @@ is_version_supported2("4.3") ->
is_version_supported2(Version) ->
case re:run(Version, "^4.[02].\\d+$", [{capture, none}]) of
match ->
try lists:map(fun erlang:list_to_integer/1, string:tokens(Version, ".")) of
try lists:map(fun erlang:list_to_integer/1, string:tokens(Version, ".")) of
[4, 2, N] -> N >= 11;
[4, 0, N] -> N >= 13;
_ -> false