From adca94e9649c364883f08d630bc5f799fe47e04d Mon Sep 17 00:00:00 2001 From: Jamie Tanna Date: Tue, 3 Oct 2023 13:54:18 +0100 Subject: [PATCH] refactor: remove duplicate dependency names in warning (#24992) --- lib/util/check-token.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/util/check-token.ts b/lib/util/check-token.ts index 0897346168..0d6bd44bac 100644 --- a/lib/util/check-token.ts +++ b/lib/util/check-token.ts @@ -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);