Skip to content

Commit 66e77f6

Browse files
authored
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
1 parent 38f74bc commit 66e77f6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/isomorphic/hooks/ReactComponentTreeHook.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function isNative(fn) {
4343
}
4444
}
4545

46-
type Item = {
46+
type Item = { // eslint-disable-line no-unused-vars
4747
element: ReactElement,
4848
parentID: DebugID,
4949
text: ?string,
@@ -113,12 +113,12 @@ if (canUseCollections) {
113113

114114
// Use non-numeric keys to prevent V8 performance issues:
115115
// https://github.com/facebook/react/pull/7232
116-
function getKeyFromID(id: DebugID): string {
116+
var getKeyFromID = function(id: DebugID): string {
117117
return '.' + id;
118-
}
119-
function getIDFromKey(key: string): DebugID {
118+
};
119+
var getIDFromKey = function(key: string): DebugID {
120120
return parseInt(key.substr(1), 10);
121-
}
121+
};
122122

123123
var setItem = function(id, item) {
124124
var key = getKeyFromID(id);

0 commit comments

Comments
 (0)