Skip to content

refactor: remove unnecessary return statements #19625

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

Merged
merged 1 commit into from
Aug 19, 2020

Conversation

koba04
Copy link
Contributor

@koba04 koba04 commented Aug 16, 2020

Summary

extractEvents doesn't have to return anything, but SimpleEventPlugin returns a SyntheticEvent object.
This is confusing, so I remove the return statement and remove an unnecessary return statement in SelectEventPlugin.

Test Plan

yarn test and yarn flow dom

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 630d0a0:

Sandbox Source
React Configuration

@gaearon gaearon merged commit 32ca313 into facebook:master Aug 19, 2020
@koba04 koba04 deleted the remove-unnecessary-returns branch August 19, 2020 14:19
koto pushed a commit to koto/react that referenced this pull request Jun 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants