Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small refactoring on cleanup option #268

Merged
merged 2 commits into from
May 30, 2019
Merged

Conversation

ehmicky
Copy link
Collaborator

@ehmicky ehmicky commented May 30, 2019

This is a small code refactoring that puts all cleanup() in a single place.

This uses pFinally instead of then() because that promise might be rejected in the future (I've got an upcoming PR that does that).

@sindresorhus sindresorhus merged commit 3b103f8 into master May 30, 2019
@sindresorhus sindresorhus deleted the feature/cleanup-refactoring branch May 30, 2019 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants