Skip to content

Fix lint errors #7568

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

Merged
merged 1 commit into from
Aug 26, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/isomorphic/hooks/ReactComponentTreeHook.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function isNative(fn) {
}
}

type Item = {
type Item = { // eslint-disable-line no-unused-vars
element: ReactElement,
parentID: DebugID,
text: ?string,
Expand Down Expand Up @@ -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);
Expand Down