summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmile Joubert <emile@rabbitmq.com>2011-01-10 15:41:23 +0000
committerEmile Joubert <emile@rabbitmq.com>2011-01-10 15:41:23 +0000
commit6e192651660bae0262b49f19f0f1b3f99a3f81d7 (patch)
treeae215a724d353b14008dd91c640c8ff0c1ac229b
parentc916d953626e1c8acb3cd74a8dfc08ef0a0c9e28 (diff)
downloadrabbitmq-server-6e192651660bae0262b49f19f0f1b3f99a3f81d7.tar.gz
One less thunk
-rw-r--r--src/rabbit_vhost.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_vhost.erl b/src/rabbit_vhost.erl
index 52ae849c..f5de0cf6 100644
--- a/src/rabbit_vhost.erl
+++ b/src/rabbit_vhost.erl
@@ -59,7 +59,7 @@ add(VHostPath) ->
[_] -> mnesia:abort({vhost_already_exists, VHostPath})
end
end,
- fun (ok) -> ok end,
+ fun rabbit_misc:const_ok/1,
fun (ok) ->
[rabbit_exchange:declare(
rabbit_misc:r(VHostPath, exchange, Name),