Skip to content

Commit

Permalink
Fix linting issue (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
MacFJA authored May 9, 2024
1 parent 4e319dc commit cf2bac9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/lib/utils/injectData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,11 @@ export const injectData = (input: z.infer<typeof packagesSchema | typeof templat
const output: z.infer<typeof packagesSchema | typeof templatesSchema> = [];
for (const item of input) {
// Github
const githubIndex = Object.keys(github).find((key) =>
normalize(item.repository) === key
);
const githubIndex = Object.keys(github).find((key) => normalize(item.repository) === key);
const githubExtra = github[githubIndex] ?? {};

// Gitlab
const gitlabIndex = Object.keys(gitlab).find((key) =>
normalize(item.repository) === key
);
const gitlabIndex = Object.keys(gitlab).find((key) => normalize(item.repository) === key);
const gitlabExtra = gitlab[gitlabIndex] ?? {};

// NPM
Expand Down

0 comments on commit cf2bac9

Please sign in to comment.