From fb85d0bbe5118e144ad19bc9f5e347ea3849aec5 Mon Sep 17 00:00:00 2001 From: Stanislaw Klekot Date: Thu, 18 Jun 2015 18:52:46 +0200 Subject: [PATCH] Fixed dialyzer warning about estap:format_info(). --- src/estap.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/estap.erl b/src/estap.erl index a1b3a5a..6c63786 100644 --- a/src/estap.erl +++ b/src/estap.erl @@ -321,14 +321,14 @@ info(Message, Info) -> %% @doc Format a single info entry for printing it on screen. -spec format_info(info()) -> - iolist(). + binary(). format_info(Info) when is_list(Info); is_binary(Info) -> iolist_to_binary(Info); format_info(Info) when is_atom(Info) -> atom_to_binary(Info, unicode); format_info({K, V} = _Info) -> - [format_info(K), ": ", format_info(V)]. + <<(format_info(K))/binary, ": ", (format_info(V))/binary>>. %% @doc Format term so it can be printed to screen. %% Convenience wrapper for {@link io_lib:format/2}. -- 1.7.10.4