Skip to content

Commit

Permalink
chore: bump eslint-plugin-unicorn to 50.0.1 and fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
baumandm committed Jan 8, 2024
1 parent 4d1a009 commit fbdd25b
Show file tree
Hide file tree
Showing 61 changed files with 561 additions and 351 deletions.
209 changes: 138 additions & 71 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"eslint-import-resolver-typescript": "3.6.1",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-prettier": "5.1.2",
"eslint-plugin-unicorn": "43.0.2",
"eslint-plugin-unicorn": "50.0.1",
"fs-extra": "11.2.0",
"globby": "11.0.4",
"graphql": "15.8.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/backend/src/controllers/webhook.v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ export const hook = (req: Request, res: Response): void => {
let insightSyncTask: InsightSyncTask | null = null;
if (req.headers['x-github-event'] !== undefined) {
insightSyncTask = handleGitHub(webhook);
} else if (webhook.path !== undefined) {
} else if (webhook.path === undefined) {
res.status(400).send('Not Recognized');
return;
} else {
insightSyncTask = {
repositoryType: RepositoryType.FILE,
owner: 'local',
repo: webhook.path
};
} else {
res.status(400).send('Not Recognized');
return;
}

if (insightSyncTask == null) {
Expand Down
Loading

0 comments on commit fbdd25b

Please sign in to comment.