Skip to content

Commit 0b8b786

Browse files
committed
fix: lint
Signed-off-by: Joana Maia <jmaia@contractor.linuxfoundation.org>
1 parent 351c47c commit 0b8b786

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

services/apps/security_best_practices_worker/src/workflows/triggerSecurityInsightsCheckForRepos.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,7 @@ export async function triggerSecurityInsightsCheckForRepos(
168168
// (via the outer loop's `refreshExpiredRateLimits`) or on a later scheduled run.
169169
const allPermanentlyInvalid = tokenInfos.every((t) => t.isInvalid)
170170
if (sawRateLimit && !allPermanentlyInvalid) {
171-
console.warn(
172-
`Exhausted token attempts (rate-limit) for repo ${repo.repoUrl}, requeuing`,
173-
)
171+
console.warn(`Exhausted token attempts (rate-limit) for repo ${repo.repoUrl}, requeuing`)
174172
queue.unshift(repo)
175173
} else {
176174
console.error(`Exhausted token attempts for repo ${repo.repoUrl}, skipping`)
@@ -275,7 +273,10 @@ function getNextToken(
275273

276274
const usableTokenInfos = tokenInfos.filter(
277275
(t) =>
278-
!t.inUse && !t.isRateLimited && !t.isInvalid && !(excludeTokens && excludeTokens.has(t.token)),
276+
!t.inUse &&
277+
!t.isRateLimited &&
278+
!t.isInvalid &&
279+
!(excludeTokens && excludeTokens.has(t.token)),
279280
)
280281

281282
// sort usable tokens by last used date from oldest to newest

0 commit comments

Comments
 (0)