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

fix typo & DCE #14124

Merged
merged 1 commit into from
Nov 9, 2018
Merged

fix typo & DCE #14124

merged 1 commit into from
Nov 9, 2018

Conversation

NE-SmallTown
Copy link
Contributor

No description provided.

@@ -56,7 +56,7 @@ function escapeHtml(string) {

let escape;
let html = '';
let index = 0;
Copy link
Contributor Author

@NE-SmallTown NE-SmallTown Nov 6, 2018

Choose a reason for hiding this comment

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

Below we do index = match.index, so it doesn't need assign here

@@ -14,7 +14,7 @@ const {
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
} = require('ReactNative');

import type {NativeMethodsMixinType} from 'ReactNativeTypes';
Copy link
Collaborator

Choose a reason for hiding this comment

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

These (and below) are wrong because they're written to be copied into RN repo.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, don't know that, could we add some comments about that, I think that would be better?

Copy link
Contributor Author

@NE-SmallTown NE-SmallTown Nov 6, 2018

Choose a reason for hiding this comment

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

Done. Remove these and below

@@ -881,7 +881,6 @@ function unmountHostComponents(current): void {
}
parent = parent.return;
}
currentParentIsValid = true;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Every switch case we do break, so this line is unreachable

Copy link
Collaborator

Choose a reason for hiding this comment

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

This looks reachable to me. The break takes us to exactly this line.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, sorry, I confuse the brace.

@sizebot
Copy link

sizebot commented Nov 6, 2018

Details of bundled changes.

Comparing: bd5a6d3...cac6224

scheduler

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
scheduler.development.js n/a n/a 0 B 19.17 KB 0 B 5.74 KB UMD_DEV
scheduler.production.min.js n/a n/a 0 B 3.16 KB 0 B 1.53 KB UMD_PROD

Generated by 🚫 dangerJS

@sophiebits sophiebits merged commit 1034e26 into facebook:master Nov 9, 2018
jetoneza pushed a commit to jetoneza/react that referenced this pull request Jan 23, 2019
n8schloss pushed a commit to n8schloss/react that referenced this pull request Jan 31, 2019
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.

5 participants