Skip to content

Commit

Permalink
Merge pull request #82 from inaka/ferigis.80.wrong_return_value
Browse files Browse the repository at this point in the history
[#80] wrong return value on specs
  • Loading branch information
cabol authored Mar 10, 2017
2 parents aa16b64 + a2be2c5 commit 6463595
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sr_single_entity_handler.erl
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ handle_get(Req, State) ->
%% <code>model</code> provided in the options.
%% @see resource_exists/2
-spec handle_patch(cowboy_req:req(), state()) ->
{{true, binary()} | false | halt, cowboy_req:req(), state()}.
{boolean() | halt, cowboy_req:req(), state()}.
handle_patch(Req, State) ->
Entity = sr_state:entity(State),
Module = sr_state:module(State),
Expand All @@ -99,7 +99,7 @@ handle_patch(Req, State) ->
%% from the <code>model</code> provided in the options.
%% @see resource_exists/2
-spec handle_put(cowboy_req:req(), state()) ->
{{true, binary()} | false | halt, cowboy_req:req(), state()}.
{boolean() | halt, cowboy_req:req(), state()}.
handle_put(Req, State) ->
try
Module = sr_state:module(State),
Expand Down

0 comments on commit 6463595

Please sign in to comment.