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

do not rethrow when no error was thrown by cleanup #270

Merged
merged 1 commit into from
Mar 8, 2023

Conversation

sodiray
Copy link
Owner

@sodiray sodiray commented Mar 8, 2023

Description

The defer function is rethrowing undefined when { rethrow: true } is passed because it is not checking if an error was thrown by the cleanup, it is always blindly rethrowing it. Fixed that, it now only rethrows if the cleanup function threw an error.

Checklist

  • Changes are covered by tests if behavior has been changed or added
  • Tests have 100% coverage
  • If code changes were made, the version in package.json has been bumped (matching semver)
  • If code changes were made, the yarn build command has been run and to update the cdn directory
  • If code changes were made, the documentation (in the /docs directory) has been updated

Resolves

n/a

@sodiray sodiray added the release label Mar 8, 2023
@vercel
Copy link

vercel bot commented Mar 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
radash-docs ✅ Ready (Inspect) Visit Preview Mar 8, 2023 at 0:00AM (UTC)

@sodiray sodiray merged commit 31c1397 into master Mar 8, 2023
@sodiray sodiray deleted the fix/defer-rethrown branch June 27, 2023 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant