diff options
author | Ben Hood <0x6e6562@gmail.com> | 2008-09-21 19:10:40 +0100 |
---|---|---|
committer | Ben Hood <0x6e6562@gmail.com> | 2008-09-21 19:10:40 +0100 |
commit | 804f6517df8058b5666f0824793c0a5fe3fc391d (patch) | |
tree | cc7ef7ed511ced5a8fd1a117a4deb04a05cc365b /src/rabbit_misc.erl | |
parent | c16db3f90b77f8dfed4b2fba5cda2fa3135ade29 (diff) | |
download | rabbitmq-server-804f6517df8058b5666f0824793c0a5fe3fc391d.tar.gz |
Removed code duplication
Diffstat (limited to 'src/rabbit_misc.erl')
-rw-r--r-- | src/rabbit_misc.erl | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl index 78de8157..c41147d1 100644 --- a/src/rabbit_misc.erl +++ b/src/rabbit_misc.erl @@ -229,10 +229,7 @@ with_user_and_vhost(Username, VHostPath, Thunk) -> %% elsewhere and get a consistent result even when that read %% executes on a different node. execute_mnesia_transaction(TxFun) -> - case mnesia:sync_transaction(TxFun) of - {atomic, Result} -> Result; - {aborted, Reason} -> throw({error, Reason}) - end. + execute_mnesia_transaction(TxFun, []). execute_mnesia_transaction(TxFun, Args) -> case mnesia:sync_transaction(TxFun, Args) of |