Skip to content

Commit

Permalink
WHISTLE-42: update return type for get_json_body
Browse files Browse the repository at this point in the history
  • Loading branch information
James Aimonetti committed Aug 25, 2012
1 parent 2e247b6 commit cb34461
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions whistle_apps/apps/crossbar/src/v1_util.erl
Expand Up @@ -277,8 +277,7 @@ corrected_base64_decode(Base64) ->
base64:mime_decode(Base64).

-type get_json_return() :: {wh_json:json_object(), #http_req{}} |
{{'malformed', ne_binary()}, #http_req{}} |
{'not_json', ne_binary(), #http_req{}}.
{{'malformed', ne_binary()}, #http_req{}}.
-spec get_json_body/1 :: (#http_req{}) -> get_json_return().
-spec get_json_body/2 :: (#http_req{}, ne_binary()) -> get_json_return().

Expand Down

0 comments on commit cb34461

Please sign in to comment.