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

cleanup(ops): Remove dead code from codegen ops #14587

Merged
merged 2 commits into from
May 12, 2022

Conversation

aapoalas
Copy link
Collaborator

Minor further improvement on #14586: There's no need to wrap result into Ok(result) just to match against Result.

Additionally, there's no need to create let ret = () for return value-less ops.

@AaronO AaronO force-pushed the cleanup/ops-less-dead-code branch from cd7de8e to 2a44cac Compare May 12, 2022 18:45
Copy link
Contributor

@AaronO AaronO left a comment

Choose a reason for hiding this comment

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

LGTM

@AaronO AaronO merged commit 6fff813 into denoland:main May 12, 2022
@aapoalas aapoalas deleted the cleanup/ops-less-dead-code branch May 12, 2022 20:12
sigmaSd pushed a commit to sigmaSd/deno that referenced this pull request May 29, 2022
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.

2 participants