Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
SillyFreak committed Jun 19, 2020
1 parent 6580b9a commit 77d894a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/projects/ProjectList/useProjectContentQuery.js
Expand Up @@ -45,6 +45,7 @@ const useRemoteProjectContentQuery = hooks.makeLazyQuery<

export async function populateProject(project: Project, contents: RemoteProjectContents) {
// prettier-ignore
// eslint-disable-next-line no-shadow
const fileTrees = Object.fromEntries(contents.fileTrees.map(({ id, contents }) => [id, contents]));
const files = Object.fromEntries(contents.files.map(({ id, data }) => [id, data]));

Expand All @@ -63,6 +64,9 @@ export async function populateProject(project: Project, contents: RemoteProjectC
await visitChildren(fileTrees[itemId], [...path, name]);
break;
}
default:
// eslint-disable-next-line no-throw-literal
throw 'unreachable';
}
}),
);
Expand Down

0 comments on commit 77d894a

Please sign in to comment.