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
Christopher Chedeau committed
Aug 25, 2016 at 19:16 UTC
66e77f696afa387811cbc40b7ee31d7f41b38e42
1 file changed
+5
-5
src/isomorphic/hooks/ReactComponentTreeHook.js
+5
-5
@@ -43,7 +43,7 @@ function isNative(fn) {
43
}
44
}
45
46
-type Item = {
46
+type Item = { // eslint-disable-line no-unused-vars
47
element: ReactElement,
48
parentID: DebugID,
49
text: ?string,
@@ -113,12 +113,12 @@ if (canUseCollections) {
113
114
// Use non-numeric keys to prevent V8 performance issues:
115
// https://github.com/facebook/react/pull/7232
116
- function getKeyFromID(id: DebugID): string {
116
+ var getKeyFromID = function(id: DebugID): string {
117
return '.' + id;
118
- }
119
- function getIDFromKey(key: string): DebugID {
118
+ };
119
+ var getIDFromKey = function(key: string): DebugID {
120
return parseInt(key.substr(1), 10);
121
- }
121
+ };
122
123
var setItem = function(id, item) {
124
var key = getKeyFromID(id);