fix: assert not empty list

This commit is contained in:
Zhongwen Deng 2022-05-10 09:39:53 +08:00
parent 9c42c9216d
commit 83b4b658e2
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ all_ciphers(['tlsv1.3']) ->
all_ciphers(Versions) ->
%% assert non-empty
List = lists:append([ssl:cipher_suites(all, V, openssl) || V <- Versions]),
dedup(List).
[_ | _] = dedup(List).
%% @doc All Pre-selected TLS ciphers.
%% ssl:cipher_suites(all, V, openssl) is too slow. so we cache default ciphers.