refactor: conditional enclosed in parentheses
This commit is contained in:
parent
207f38c42a
commit
0297c7b83b
|
@ -58,8 +58,8 @@ remove_handler() ->
|
||||||
post_config_update(_, _Req, NewConf, OldConf, _AppEnvs) ->
|
post_config_update(_, _Req, NewConf, OldConf, _AppEnvs) ->
|
||||||
#{os := OS1, vm := VM1} = OldConf,
|
#{os := OS1, vm := VM1} = OldConf,
|
||||||
#{os := OS2, vm := VM2} = NewConf,
|
#{os := OS2, vm := VM2} = NewConf,
|
||||||
VM1 =/= VM2 andalso ?MODULE:update(VM2),
|
(VM1 =/= VM2) andalso ?MODULE:update(VM2),
|
||||||
OS1 =/= OS2 andalso emqx_os_mon:update(OS2),
|
(OS1 =/= OS2) andalso emqx_os_mon:update(OS2),
|
||||||
ok.
|
ok.
|
||||||
|
|
||||||
update(VM) ->
|
update(VM) ->
|
||||||
|
|
Loading…
Reference in New Issue