Skip to content

Commit 73a3104

Browse files
committed
cosmetic
1 parent e09582b commit 73a3104

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/rabbit_misc.erl

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -267,11 +267,12 @@ assert_args_equivalence1(Orig, New, Name, Key) ->
267267
val(undefined) ->
268268
"none";
269269
val({Type, Value}) ->
270-
Fmt = case is_binary(Value) of
271-
true -> "the value '~s' of type '~s'";
272-
false -> "the value '~w' of type '~s'"
273-
end,
274-
lists:flatten(io_lib:format(Fmt, [Value, Type])).
270+
ValFmt = case is_binary(Value) of
271+
true -> "~s";
272+
false -> "~w"
273+
end,
274+
lists:flatten(io_lib:format("the value '" ++ ValFmt ++ "' of type '~s'",
275+
[Value, Type])).
275276

276277
%% Normally we'd call mnesia:dirty_read/1 here, but that is quite
277278
%% expensive due to general mnesia overheads (figuring out table types

0 commit comments

Comments
 (0)