Permalink
Browse files

Fix "remove_collaborator" returning request object instead of boolean

  • Loading branch information...
1 parent 169bf40 commit 940b62c0d247978a477d3bc6691d35c7d70a6830 @x3ro x3ro committed Dec 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/octokit/client/repositories.rb
@@ -302,7 +302,7 @@ def add_collaborator(repo, collaborator, options={})
# @example
# @client.remove_collab('pengwynn/octokit', 'holman')
def remove_collaborator(repo, collaborator, options={})
- request :delete, "repos/#{Repository.new repo}/collaborators/#{collaborator}", options
+ request(:delete, "repos/#{Repository.new repo}/collaborators/#{collaborator}", options).status == 204
end
alias :remove_collab :remove_collaborator

0 comments on commit 940b62c

Please sign in to comment.