Skip to content

Commit 003d457

Browse files
committed
Remove redundant code.
1 parent b9545e3 commit 003d457

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

lib/messagebird/http_client.rb

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,6 @@ def request(method, path, params={}, check_json=true)
2727
# Execute the request and fetch the response.
2828
response = http.request(request)
2929

30-
# Parse the HTTP response.
31-
case response.code.to_i
32-
when 200, 201, 204, 401, 404, 405, 422
33-
# Ok
34-
else
35-
raise InvalidPhoneNumberException, 'Unknown response from server'
36-
end
37-
38-
# Execute the request and fetch the response.
39-
response = http.request(request)
40-
4130
assert_valid_response_code(response.code.to_i)
4231
assert_json_response_type(response['Content-Type']) unless check_json
4332

0 commit comments

Comments
 (0)