summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <jean-sebastien.pedron@dumbbell.fr>2021-02-25 11:13:23 +0100
committerJean-Sébastien Pédron <jean-sebastien.pedron@dumbbell.fr>2021-02-25 11:13:23 +0100
commit561d2e660decb29a2b86c52e72137865542a51fb (patch)
treed853200965f275dc6346923718dcf7c308d2318c
parentba6059b1eb1756c5daa0968a3f9ccb5777342c0c (diff)
downloadrabbitmq-server-git-561d2e660decb29a2b86c52e72137865542a51fb.tar.gz
rabbit_env: Use consistent style
-rw-r--r--deps/rabbit_common/src/rabbit_env.erl10
1 files changed, 4 insertions, 6 deletions
diff --git a/deps/rabbit_common/src/rabbit_env.erl b/deps/rabbit_common/src/rabbit_env.erl
index 58ca369b67..b84a8838b7 100644
--- a/deps/rabbit_common/src/rabbit_env.erl
+++ b/deps/rabbit_common/src/rabbit_env.erl
@@ -29,12 +29,12 @@
value_is_yes/1]).
-endif.
-%% Vary from OTP version to version
+%% Vary from OTP version to version.
-ignore_xref([
{os, env, 0},
{os, list_env_vars, 0}
]).
-%% Relies on functions only available in certain OTP versions
+%% Relies on functions only available in certain OTP versions.
-dialyzer({nowarn_function, [env_vars/0]}).
-define(USED_ENV_VARS,
@@ -221,10 +221,8 @@ update_context(Context, Key, Value, Origin)
env_vars() ->
case erlang:function_exported(os, list_env_vars, 0) of
- %% OTP < 24
- true -> os:list_env_vars();
- %% OTP >= 24
- false -> os:env()
+ true -> os:list_env_vars(); %% OTP < 24
+ false -> os:env() %% OTP >= 24
end.
get_used_env_vars() ->