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

Fix Gist::delete #185

Merged
merged 3 commits into from
Jul 6, 2015
Merged

Fix Gist::delete #185

merged 3 commits into from
Jul 6, 2015

Conversation

aki77
Copy link
Contributor

@aki77 aki77 commented Jul 5, 2015

Add callback parameters.

@pksunkara
Copy link
Owner

No sorry. The client will be trying delete as long as it can.

@pksunkara pksunkara closed this Jul 5, 2015
@aki77
Copy link
Contributor Author

aki77 commented Jul 5, 2015

The following cases are causes infinite loop.

  • invalid token
  • invalid id
  • github server down
github = require('octonode')
github.client('badtoken').gist().delete('badid')

@pksunkara pksunkara reopened this Jul 5, 2015
@pksunkara
Copy link
Owner

You are right. Can you check if there are any other such retries and fix them too?

@aki77
Copy link
Contributor Author

aki77 commented Jul 5, 2015

I'll try.

@aki77
Copy link
Contributor Author

aki77 commented Jul 5, 2015

Please check the files changed.

@@ -131,8 +134,9 @@ class Gist
# Delete a comment
# '/gists/comments/1' DELETE
deleteComment: (id) ->
Copy link
Owner

Choose a reason for hiding this comment

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

This needs cb as parameter.

@pksunkara
Copy link
Owner

Only one small thing which needs to be fixed.

pksunkara added a commit that referenced this pull request Jul 6, 2015
@pksunkara pksunkara merged commit 2b89ce2 into pksunkara:master Jul 6, 2015
@pksunkara
Copy link
Owner

Thanks for the PR 😄

@aki77
Copy link
Contributor Author

aki77 commented Jul 6, 2015

Thanks 😃

aki77 added a commit to aki77/atom-gist that referenced this pull request Jul 6, 2015
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