diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2012-11-05 15:00:50 +0000 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2012-11-05 15:00:50 +0000 |
commit | 7f23856e81433e12a3ecfba5044662744b21d7c6 (patch) | |
tree | 9ef53adf6d4d32b8bd888b14e296887dfdb1bad3 | |
parent | 7e9680a7ac410a29be7562526b052f4b6acce04e (diff) | |
download | rabbitmq-server-7f23856e81433e12a3ecfba5044662744b21d7c6.tar.gz |
cosmetic
-rw-r--r-- | src/rabbit_misc.erl | 9 |
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]; |