Skip to content

Commit

Permalink
Fix dialyzer error
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Arts committed Oct 24, 2019
1 parent c17790f commit 8fcc415
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/riak_repl_wm_rtenqueue.erl
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,11 @@ process_post(RD, Ctx) ->

-spec malformed_timeout_param(#wm_reqdata{}, context()) ->
{boolean(), #wm_reqdata{}, context()}.
%% @doc Check that the timeout parameter is are a
%% string-encoded integer. Store the integer value
%% in context() if so.
%% @doc Check that the timeout parameter is a string-encoded integer.
%% Store the integer value in context() if so.
malformed_timeout_param(RD, Ctx) ->
case wrq:get_qs_value("timeout", none, RD) of
none ->
case wrq:get_qs_value("timeout", RD) of
undefined ->
{false, RD, Ctx};
TimeoutStr ->
try
Expand Down

0 comments on commit 8fcc415

Please sign in to comment.