Fix the spec of function 'is_enabled/1'

This commit is contained in:
Feng Lee 2019-09-10 16:24:38 +08:00
parent 6eedcb0eda
commit 2bf951d953
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@
-define(BOOT_MODULES, [router, broker, listeners]).
-spec(is_enabled(all|list(router|broker|listener)) -> boolean()).
-spec(is_enabled(all|list(router|broker|listeners)) -> boolean()).
is_enabled(Mod) ->
(BootMods = boot_modules()) =:= all orelse lists:member(Mod, BootMods).