Skip to content

Commit 8d42c07

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 8d42c07

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/riakc_pb_socket.erl

+2
Original file line numberDiff line numberDiff line change
@@ -1701,6 +1701,8 @@ counter_val_options([_ | _Rest], _Req) ->
17011701
-spec process_response(#request{}, rpb_resp(), #state{}) ->
17021702
{reply, term(), #state{}} |
17031703
{pending, #state{}}.
1704+
%% Disable "The pattern 'undefined' can never match the type [binary()]" warnings in process_response/3:
1705+
-dialyzer({no_match, process_response/3}).
17041706
process_response(#request{msg = rpbpingreq}, rpbpingresp, State) ->
17051707
{reply, pong, State};
17061708
process_response(#request{msg = rpbgetclientidreq},

0 commit comments

Comments
 (0)