summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2012-11-05 15:00:50 +0000
committerMatthias Radestock <matthias@rabbitmq.com>2012-11-05 15:00:50 +0000
commit7f23856e81433e12a3ecfba5044662744b21d7c6 (patch)
tree9ef53adf6d4d32b8bd888b14e296887dfdb1bad3
parent7e9680a7ac410a29be7562526b052f4b6acce04e (diff)
downloadrabbitmq-server-7f23856e81433e12a3ecfba5044662744b21d7c6.tar.gz
cosmetic
-rw-r--r--src/rabbit_misc.erl9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl
index bdc52852..7e3cc3d7 100644
--- a/src/rabbit_misc.erl
+++ b/src/rabbit_misc.erl
@@ -1005,12 +1005,9 @@ term_to_json(V) when is_binary(V) orelse is_number(V) orelse V =:= null orelse
V =:= true orelse V =:= false ->
V.
-check_expiry(N) when N > ?MAX_EXPIRY_TIMER ->
- {error, {value_too_big, N}};
-check_expiry(N) when N < 0 ->
- {error, {value_negative, N}};
-check_expiry(_N) ->
- ok.
+check_expiry(N) when N > ?MAX_EXPIRY_TIMER -> {error, {value_too_big, N}};
+check_expiry(N) when N < 0 -> {error, {value_negative, N}};
+check_expiry(_N) -> ok.
base64url(In) ->
lists:reverse(lists:foldl(fun ($\+, Acc) -> [$\- | Acc];