refactor: fix typo
This commit is contained in:
parent
697c8f5ee1
commit
ab1b0dda67
|
@ -1345,13 +1345,13 @@ get_conf_root_key_if_only_one(BridgeType, BridgeName) ->
|
||||||
LookUpConfSources = lookup_conf(?ROOT_KEY_SOURCES, BridgeType, BridgeName),
|
LookUpConfSources = lookup_conf(?ROOT_KEY_SOURCES, BridgeType, BridgeName),
|
||||||
case {LookUpConfActions, LookUpConfSources} of
|
case {LookUpConfActions, LookUpConfSources} of
|
||||||
{{error, bridge_not_found}, {error, bridge_not_found}} ->
|
{{error, bridge_not_found}, {error, bridge_not_found}} ->
|
||||||
error({action_or_soruces_not_found, BridgeType, BridgeName});
|
error({action_or_source_not_found, BridgeType, BridgeName});
|
||||||
{{error, bridge_not_found}, _Conf} ->
|
{{error, bridge_not_found}, _Conf} ->
|
||||||
?ROOT_KEY_SOURCES;
|
?ROOT_KEY_SOURCES;
|
||||||
{_Conf, {error, bridge_not_found}} ->
|
{_Conf, {error, bridge_not_found}} ->
|
||||||
?ROOT_KEY_ACTIONS;
|
?ROOT_KEY_ACTIONS;
|
||||||
{_Conf1, _Conf2} ->
|
{_Conf1, _Conf2} ->
|
||||||
error({name_clash_action_soruces, BridgeType, BridgeName})
|
error({name_clash_action_source, BridgeType, BridgeName})
|
||||||
end.
|
end.
|
||||||
|
|
||||||
lookup_conf(RootName, Type, Name) ->
|
lookup_conf(RootName, Type, Name) ->
|
||||||
|
|
Loading…
Reference in New Issue