Skip to content

Commit

Permalink
refactor: remove duplicate dependency names in warning (#24992)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamietanna committed Oct 3, 2023
1 parent 3c592a2 commit adca94e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/util/check-token.ts
Expand Up @@ -50,8 +50,9 @@ export function checkGithubToken(
'github-token-required-warning-logged'
);
if (!warningLogged) {
const withoutDuplicates = [...new Set(githubDeps)];
logger.warn(
{ githubDeps },
{ githubDeps: withoutDuplicates },
`GitHub token is required for some dependencies`
);
memCache.set('github-token-required-warning-logged', true);
Expand Down

0 comments on commit adca94e

Please sign in to comment.