Remove config keys check in set_gmconfig_env()
This commit is contained in:
parent
e003452629
commit
ec02bfed41
@ -111,12 +111,7 @@ mock_system_defaults(Config) ->
|
|||||||
|
|
||||||
-spec set_gmconfig_env(gmconfig()) -> ok.
|
-spec set_gmconfig_env(gmconfig()) -> ok.
|
||||||
set_gmconfig_env(Env) when is_map(Env) ->
|
set_gmconfig_env(Env) when is_map(Env) ->
|
||||||
case maps:keys(default_gmconfig()) -- maps:keys(Env) of
|
persistent_term:put({?MODULE, gmconfig_env}, Env).
|
||||||
[] ->
|
|
||||||
persistent_term:put({?MODULE, gmconfig_env}, Env);
|
|
||||||
Unknown ->
|
|
||||||
error({unknown_config_keys, Unknown})
|
|
||||||
end.
|
|
||||||
|
|
||||||
-spec gmconfig_env() -> gmconfig().
|
-spec gmconfig_env() -> gmconfig().
|
||||||
gmconfig_env() ->
|
gmconfig_env() ->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user