Skip to content

Commit

Permalink
Revert "return true for HTTP 201 #boolean_from_response"
Browse files Browse the repository at this point in the history
This reverts commit e0698bb.
  • Loading branch information
joeyw committed Nov 2, 2016
1 parent d14f5aa commit 8795fc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/octokit/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def request(method, path, data, options = {})
# @return [Boolean] True on success, false otherwise
def boolean_from_response(method, path, options = {})
request(method, path, options)
@last_response.status == 204 || @last_response.status == 201
@last_response.status == 204
rescue Octokit::NotFound
false
end
Expand Down

0 comments on commit 8795fc9

Please sign in to comment.