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 409061a commit fcebf36Copy full SHA for fcebf36
deps/rabbit_common/src/rabbit_misc.erl
@@ -1221,12 +1221,9 @@ get_proc_name() ->
1221
{ok, Name}
1222
end.
1223
1224
-%% application:get_env/3 is only available in R16B01 or later.
+%% application:get_env/3 is available in R16B01 or later.
1225
get_env(Application, Key, Def) ->
1226
- case application:get_env(Application, Key) of
1227
- {ok, Val} -> Val;
1228
- undefined -> Def
1229
- end.
+ application:get_env(Application, Key, Def).
1230
1231
get_channel_operation_timeout() ->
1232
%% Default channel_operation_timeout set to net_ticktime + 10s to
0 commit comments