We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4eda2a8 commit 728dd57Copy full SHA for 728dd57
deps/rabbit_common/src/rabbit_misc.erl
@@ -1180,12 +1180,9 @@ get_proc_name() ->
1180
{ok, Name}
1181
end.
1182
1183
-%% application:get_env/3 is only available in R16B01 or later.
+%% application:get_env/3 is available in R16B01 or later.
1184
get_env(Application, Key, Def) ->
1185
- case application:get_env(Application, Key) of
1186
- {ok, Val} -> Val;
1187
- undefined -> Def
1188
- end.
+ application:get_env(Application, Key, Def).
1189
1190
get_channel_operation_timeout() ->
1191
%% Default channel_operation_timeout set to net_ticktime + 10s to
0 commit comments