style: fix type problem found by dialyzer

This commit is contained in:
Kjell Winblad 2024-06-18 17:02:26 +02:00
parent 3c8c8ddf36
commit 4a318f8f51
2 changed files with 3 additions and 2 deletions

View File

@ -164,7 +164,7 @@
-type root_cfg_key() :: ?ROOT_KEY_ACTIONS | ?ROOT_KEY_SOURCES.
-export_type([root_cfg_key/0]).
-export_type([root_cfg_key/0, bridge_v2_type/0, bridge_v2_name/0]).
%%====================================================================

View File

@ -42,7 +42,8 @@
func := builtin_action_func() | atom(),
args => action_fun_args()
}
| bridge_channel_id().
| bridge_channel_id()
| {bridge_v2, emqx_bridge_v2:bridge_v2_type(), emqx_bridge_v2:bridge_v2_name()}.
-type rule() ::
#{