Fix the operator precedence bug
This commit is contained in:
parent
b97f04ceae
commit
6972cbb36e
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
-spec(is_enabled(all|list(router|broker|listener)) -> boolean()).
|
-spec(is_enabled(all|list(router|broker|listener)) -> boolean()).
|
||||||
is_enabled(Mod) ->
|
is_enabled(Mod) ->
|
||||||
(BootMods = boot_modules() =:= all) orelse lists:member(Mod, BootMods).
|
(BootMods = boot_modules()) =:= all orelse lists:member(Mod, BootMods).
|
||||||
|
|
||||||
boot_modules() ->
|
boot_modules() ->
|
||||||
application:get_env(emqx, boot_modules, ?BOOT_MODULES).
|
application:get_env(emqx, boot_modules, ?BOOT_MODULES).
|
||||||
|
|
Loading…
Reference in New Issue