diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2010-10-25 17:03:57 +0100 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2010-10-25 17:03:57 +0100 |
commit | fe9f8e23de8f28190b5336e0a7ba933b744853e2 (patch) | |
tree | ba740b204e75d910addfba9873f99a7bf029a5a6 /src/rabbit_upgrade_functions.erl | |
parent | 71b0e77815e791ede56e479a8550684b5fd5804e (diff) | |
download | rabbitmq-server-fe9f8e23de8f28190b5336e0a7ba933b744853e2.tar.gz |
Various stylistic tweaks + cleanups
Diffstat (limited to 'src/rabbit_upgrade_functions.erl')
-rw-r--r-- | src/rabbit_upgrade_functions.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rabbit_upgrade_functions.erl b/src/rabbit_upgrade_functions.erl index dfd22aea..53a1624e 100644 --- a/src/rabbit_upgrade_functions.erl +++ b/src/rabbit_upgrade_functions.erl @@ -47,7 +47,7 @@ remove_user_scope() -> {atomic, ok} = mnesia:transform_table( rabbit_user_permission, - fun(Perm = #user_permission{ + fun (Perm = #user_permission{ permission = {permission, _Scope, Conf, Write, Read}}) -> Perm#user_permission{ permission = #permission2{configure = Conf, @@ -59,7 +59,7 @@ remove_user_scope() -> test_add_column() -> {atomic, ok} = mnesia:transform_table( rabbit_user, - fun({user, Username, Password, Admin}) -> + fun ({user, Username, Password, Admin}) -> {user, Username, Password, Admin, something_else} end, [username, password, is_admin, something]). @@ -67,7 +67,7 @@ test_add_column() -> test_remove_column() -> {atomic, ok} = mnesia:transform_table( rabbit_user, - fun({user, Username, Password, Admin, _SomethingElse}) -> + fun ({user, Username, Password, Admin, _SomethingElse}) -> {user, Username, Password, Admin} end, record_info(fields, user)). |