Commits

Anonymous committed b83fc33

Fix tuple/1 deprecation warning by using is_tuple/1
(patch from Tuncer Ayaz <tuncer.ayaz@gmail.com>)

Comments (0)

Files changed (2)

src/webmachine_logger.erl

 zone(Val) when Val >= 0 ->
     io_lib:format("+~4..0w", [trunc(abs(Val))]).
 
-fmt_ip(IP) when tuple(IP) ->
+fmt_ip(IP) when is_tuple(IP) ->
     inet_parse:ntoa(IP);
 fmt_ip(undefined) ->
     "0.0.0.0";

src/webmachine_perf_logger.erl

 zone(Val) when Val >= 0 ->
     io_lib:format("+~4..0w", [trunc(abs(Val))]).
 
-fmt_ip(IP) when tuple(IP) ->
+fmt_ip(IP) when is_tuple(IP) ->
     inet_parse:ntoa(IP);
 fmt_ip(undefined) ->
     "0.0.0.0";