summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmile Joubert <emile@rabbitmq.com>2011-10-19 13:59:13 +0100
committerEmile Joubert <emile@rabbitmq.com>2011-10-19 13:59:13 +0100
commit46143ab7d20853a8b2f7a571ef14931f4ddf3861 (patch)
tree19bb35aef143e5ec0e18ed5d7c7b545cdee97b04
parent2fca18856246f66085d0bcab520209703a0e5e9b (diff)
downloadrabbitmq-server-46143ab7d20853a8b2f7a571ef14931f4ddf3861.tar.gz
Saner naming
-rw-r--r--src/rabbit_misc.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl
index 1bfd1baf..e615936c 100644
--- a/src/rabbit_misc.erl
+++ b/src/rabbit_misc.erl
@@ -253,9 +253,9 @@ assert_args_equivalence1(Orig, New, Name, Key) ->
case {table_lookup(Orig, Key), table_lookup(New, Key)} of
{Same, Same} ->
ok;
- {{Type1, OrigVal1} = Orig1, {Type2, NewVal1} = New1} ->
- case type_class(Type1) == type_class(Type2) andalso
- OrigVal1 == NewVal1 of
+ {{OrigType, OrigVal} = Orig1, {NewType, NewVal} = New1} ->
+ case type_class(OrigType) == type_class(NewType) andalso
+ OrigVal == NewVal of
true -> ok;
false -> protocol_error(precondition_failed, "inequivalent arg"
" '~s' for ~s: received ~s but current"