Skip to content

Removed unnecessary null check#6841

Merged
jimfb merged 1 commit intofacebook:masterfrom
jimfb:remove-unnecessary-null-check
May 23, 2016
Merged

Removed unnecessary null check#6841
jimfb merged 1 commit intofacebook:masterfrom
jimfb:remove-unnecessary-null-check

Conversation

@jimfb
Copy link
Copy Markdown
Contributor

@jimfb jimfb commented May 23, 2016

Fixes #6840. target is always non-null, but this extra null check makes the code harder to read (confusing), burns CPU cycles, and increases byte size, and causes static analyzers to complain - so we might as well just remove it.

cc @spicyj

@sophiebits
Copy link
Copy Markdown
Collaborator

Sure.

@jimfb jimfb merged commit 799eae2 into facebook:master May 23, 2016
@zpao zpao added this to the 15.y.z milestone May 25, 2016
zpao pushed a commit to zpao/react that referenced this pull request Jun 8, 2016
zpao pushed a commit that referenced this pull request Jun 14, 2016
@zpao zpao modified the milestones: 15-next, 15.2.0 Jun 14, 2016
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