Skip to content

Commit c3f2979

Browse files
author
David Hull
committed
Disable some dialyzer warnings in riakc_pb_socket:process_response/3.
Dialzyer produces errors such as the following because the code checks for fields containing `undefined` when the spec does not allow it. riakc_pb_socket.erl:1786: The pattern 'undefined' can never match the type [binary()]
1 parent 589c1b5 commit c3f2979

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/riakc_pb_socket.erl

+4
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@
182182

183183
-export_type([address/0, portnum/0]).
184184

185+
%% Disable "The pattern 'undefined' can never match the type [binary()]"
186+
%% warnings in process_response/3:
187+
-dialyzer({no_match, process_response/3}).
188+
185189
%% @private Like `gen_server:call/3', but with the timeout hardcoded
186190
%% to `infinity'.
187191
call_infinity(Pid, Msg) ->

0 commit comments

Comments
 (0)