Match on function head per @Ayanda-D's advice

This commit is contained in:
Michael Klishin 2017-06-12 01:11:43 +03:00
parent c28c5ddbff
commit 2b492aba4c
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ i(connected_at, #state{connected_at = T}) -> T;
%% adapter_info can be undefined e.g. when we were
%% not granted access to a vhost
i(_Key, #state{adapter_info = I}) when I =:= undefined -> unknown;
i(_Key, #state{adapter_info = undefined}) -> unknown;
i(protocol, #state{adapter_info = I}) -> I#amqp_adapter_info.protocol;
i(host, #state{adapter_info = I}) -> I#amqp_adapter_info.host;
i(port, #state{adapter_info = I}) -> I#amqp_adapter_info.port;