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.
|
||||
set_gmconfig_env(Env) when is_map(Env) ->
|
||||
case maps:keys(default_gmconfig()) -- maps:keys(Env) of
|
||||
[] ->
|
||||
persistent_term:put({?MODULE, gmconfig_env}, Env);
|
||||
Unknown ->
|
||||
error({unknown_config_keys, Unknown})
|
||||
end.
|
||||
persistent_term:put({?MODULE, gmconfig_env}, Env).
|
||||
|
||||
-spec gmconfig_env() -> gmconfig().
|
||||
gmconfig_env() ->
|
||||
|
Loading…
x
Reference in New Issue
Block a user