diff options
author | Emile Joubert <emile@rabbitmq.com> | 2011-10-19 13:59:13 +0100 |
---|---|---|
committer | Emile Joubert <emile@rabbitmq.com> | 2011-10-19 13:59:13 +0100 |
commit | 46143ab7d20853a8b2f7a571ef14931f4ddf3861 (patch) | |
tree | 19bb35aef143e5ec0e18ed5d7c7b545cdee97b04 | |
parent | 2fca18856246f66085d0bcab520209703a0e5e9b (diff) | |
download | rabbitmq-server-46143ab7d20853a8b2f7a571ef14931f4ddf3861.tar.gz |
Saner naming
-rw-r--r-- | src/rabbit_misc.erl | 6 |
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" |