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:
Christopher Chedeau
2016-08-25 19:16:34 -07:00
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);