Don't assume at least 1 certificate was deleted

With duplicate certificates, when one of them is removed 0 would
be returned, causing a badmatch.
This commit is contained in:
Michael Klishin 2016-06-21 23:14:13 +03:00
parent 870833131c
commit 7bd72eb2f3
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ tabulate(Path) ->
delete({Name, Time}) ->
rabbit_log:info("removing certificate '~s'", [Name]),
1 = ets:select_delete(table_name(), one_whitelisted_filename({Name, Time})).
ets:select_delete(table_name(), one_whitelisted_filename({Name, Time})).
insert(Entry) ->
true = ets:insert(table_name(), Entry).