summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Klishin <mklishin@pivotal.io>2016-09-01 02:23:24 +0300
committerMichael Klishin <mklishin@pivotal.io>2016-09-01 02:23:24 +0300
commitabc2565d5aa422f1ea55102947277f3448b40afd (patch)
tree1beae17eabf35bffb59e3f707a0842dcfa850689 /src
parent20d1f37f5d93c3aab97e2afa62ac3f40c94d59a3 (diff)
downloadrabbitmq-server-git-abc2565d5aa422f1ea55102947277f3448b40afd.tar.gz
Optimize a case clause
Operator policies won't be used most of the time.
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_policy.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_policy.erl b/src/rabbit_policy.erl
index f5b6c8d535..d2d6233025 100644
--- a/src/rabbit_policy.erl
+++ b/src/rabbit_policy.erl
@@ -83,8 +83,8 @@ effective_definition0(Policy, OpPolicy) ->
{OpKeys, _} = lists:unzip(OpDefinition),
lists:map(fun(Key) ->
case {pget(Key, Definition), pget(Key, OpDefinition)} of
- {undefined, Val} -> {Key, Val};
{Val, undefined} -> {Key, Val};
+ {undefined, Val} -> {Key, Val};
{Val, OpVal} -> {Key, merge_policy_value(Key, Val, OpVal)}
end
end,