From 1032d8551c614d0892f074e3acaf40786622af81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Thu, 1 Feb 2018 11:57:23 +0100 Subject: rabbit_heartbeat, rabbit_writer: system_terminate() doesn't return Thus, use the correct return type of `no_return()`. Even if it's defined as `none()` according to the documentation, it doesn't have the same semantic. The warning was reported by Dialyzer. [#153850881] --- deps/rabbit_common/src/rabbit_writer.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'deps/rabbit_common/src/rabbit_writer.erl') diff --git a/deps/rabbit_common/src/rabbit_writer.erl b/deps/rabbit_common/src/rabbit_writer.erl index 66f87c32b3..5223071287 100644 --- a/deps/rabbit_common/src/rabbit_writer.erl +++ b/deps/rabbit_common/src/rabbit_writer.erl @@ -96,7 +96,7 @@ -spec system_code_change(_,_,_,_) -> {'ok',_}. -spec system_continue(_,_,#wstate{}) -> any(). --spec system_terminate(_,_,_,_) -> none(). +-spec system_terminate(_,_,_,_) -> no_return(). -spec send_command(pid(), rabbit_framing:amqp_method_record()) -> 'ok'. -spec send_command -- cgit v1.2.1