fix(dashboard): add missing function clause
Example error: https://github.com/emqx/emqx/actions/runs/5045715277/jobs/9052482682#step:8:294 The previous change was not equivalent to the previous `maps:with/2` behavior.
This commit is contained in:
parent
65f973044f
commit
0877e4296a
|
@ -192,7 +192,9 @@ ranch_opts(Options) ->
|
|||
RanchOpts#{socket_opts => InetOpts ++ SocketOpts}.
|
||||
|
||||
proto_opts(#{proxy_header := ProxyHeader}) ->
|
||||
#{proxy_header => ProxyHeader}.
|
||||
#{proxy_header => ProxyHeader};
|
||||
proto_opts(_Opts) ->
|
||||
#{}.
|
||||
|
||||
filter_false(_K, false, S) -> S;
|
||||
filter_false(K, V, S) -> [{K, V} | S].
|
||||
|
|
Loading…
Reference in New Issue