summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2020-05-11 12:40:09 +0200
committerJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2020-05-11 12:40:09 +0200
commit8149d503a953a238e785bfb83362dd7e634a1385 (patch)
tree57e4297b12efae73b70815102078bafee0592e08 /src
parentc1fea1a9d51bf48cbcc6facaa359b211fcd6d56c (diff)
downloadrabbitmq-server-git-8149d503a953a238e785bfb83362dd7e634a1385.tar.gz
rabbit_vhost: Vhost limits are never `undefined`
The type spec of vhost limits is a list, possibly empty. A vhost is initialized with an empty list. Reported by Dialyzer.
Diffstat (limited to 'src')
-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 5b619dfb2e..76d03d6a8a 100644
--- a/src/rabbit_vhost.erl
+++ b/src/rabbit_vhost.erl
@@ -366,7 +366,7 @@ update(VHost, Fun) ->
end.
set_limits(VHost, undefined) ->
- vhost:set_limits(VHost, undefined);
+ vhost:set_limits(VHost, []);
set_limits(VHost, Limits) ->
vhost:set_limits(VHost, Limits).