chore: avoid invalid dynamic call error
This commit is contained in:
parent
ba2464769b
commit
8c30c22b02
|
@ -345,7 +345,8 @@ init_load(SchemaMod, Conf) when is_list(Conf) orelse is_binary(Conf) ->
|
||||||
upgrade_raw_conf(SchemaMod, RawConf) ->
|
upgrade_raw_conf(SchemaMod, RawConf) ->
|
||||||
case erlang:function_exported(SchemaMod, upgrade_raw_conf, 1) of
|
case erlang:function_exported(SchemaMod, upgrade_raw_conf, 1) of
|
||||||
true ->
|
true ->
|
||||||
SchemaMod:upgrade_raw_conf(RawConf);
|
%% TODO make it a schema module behaviour in hocon_schema
|
||||||
|
apply(SchemaMod, upgrade_raw_conf, [RawConf]);
|
||||||
false ->
|
false ->
|
||||||
RawConf
|
RawConf
|
||||||
end.
|
end.
|
||||||
|
|
Loading…
Reference in New Issue