Skip to content

Remove unneeded declare #7570

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 26, 2016
Merged

Conversation

vjeux
Copy link
Contributor

@vjeux vjeux commented Aug 26, 2016

It turns out that we don't need it, flow is smart enough to realize that the function is declared in the two branches :)

@vjeux
Copy link
Contributor Author

vjeux commented Aug 26, 2016

screen shot 2016-08-25 at 7 59 32 pm

@vjeux vjeux added this to the 15-next milestone Aug 26, 2016
@@ -52,15 +52,6 @@ type Item = {
updateCount: number,
};
Copy link
Collaborator

Choose a reason for hiding this comment

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

So is Item truly unused now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's correct! Less code needed :)

It turns out that we don't need it, flow is smart enough to realize that the function is declared in the two branches :)
@vjeux vjeux force-pushed the remove_uneeded_declare branch from 24379b6 to a545d5b Compare August 26, 2016 03:04
@vjeux
Copy link
Contributor Author

vjeux commented Aug 26, 2016

Rebased and removed the Item type declaration

@sebmarkbage
Copy link
Collaborator

awesome

@vjeux vjeux merged commit b977cf1 into facebook:master Aug 26, 2016
@zpao zpao modified the milestones: 15-next, 15.4.0 Oct 4, 2016
zpao pushed a commit that referenced this pull request Oct 4, 2016
It turns out that we don't need it, flow is smart enough to realize that the function is declared in the two branches :)
(cherry picked from commit b977cf1)
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