mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix lint errors (#7568)
In Type ReactComponentTreeHook #7504, I merged even though travis didn't report green (travis for all the fb repos has been backlogged like crazy since this morning) by manually doing `npm test` and `npm run flow` but I didn't ensure that lint was all green. @millermedeiros pinged me about it so here's a quick fix
This commit is contained in:
committed by
GitHub
parent
38f74bcaf4
commit
66e77f696a
@@ -43,7 +43,7 @@ function isNative(fn) {
|
||||
}
|
||||
}
|
||||
|
||||
type Item = {
|
||||
type Item = { // eslint-disable-line no-unused-vars
|
||||
element: ReactElement,
|
||||
parentID: DebugID,
|
||||
text: ?string,
|
||||
@@ -113,12 +113,12 @@ if (canUseCollections) {
|
||||
|
||||
// Use non-numeric keys to prevent V8 performance issues:
|
||||
// https://github.com/facebook/react/pull/7232
|
||||
function getKeyFromID(id: DebugID): string {
|
||||
var getKeyFromID = function(id: DebugID): string {
|
||||
return '.' + id;
|
||||
}
|
||||
function getIDFromKey(key: string): DebugID {
|
||||
};
|
||||
var getIDFromKey = function(key: string): DebugID {
|
||||
return parseInt(key.substr(1), 10);
|
||||
}
|
||||
};
|
||||
|
||||
var setItem = function(id, item) {
|
||||
var key = getKeyFromID(id);
|
||||
|
||||
Reference in New Issue
Block a user