这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Aug 23, 2024. It is now read-only.

Handle HTTP 204 on a repo having no contributors #93

Merged
merged 2 commits into from
Feb 20, 2014

Conversation

suprememoocow
Copy link
Contributor

When a repository has no contributors (it can happen!) the /repo/x/y/contributors call returns a 204, which Octonode translates into an error, whereas it should be a empty result.

if s isnt 200
cb(new Error("Repo contributors error"))
else
cb null, b, h
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make the above 4 lines into a single one?

@suprememoocow
Copy link
Contributor Author

Please excuse my coffeescript. The sum total of all the coffeescript I've written in the world is in the PR's I've sent to this project, so at times it can be a little rough!

pksunkara added a commit that referenced this pull request Feb 20, 2014
Handle HTTP 204 on a repo having no contributors
@pksunkara pksunkara merged commit adabb3a into pksunkara:master Feb 20, 2014
@suprememoocow suprememoocow deleted the no_contributors branch February 20, 2014 18:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants