Skip to content

Commit 87e6a04

Browse files
committed
fix: lint
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
1 parent a91d74f commit 87e6a04

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • services/apps/automatic_projects_discovery_worker/src/sources/lf-criticality-score

services/apps/automatic_projects_discovery_worker/src/sources/lf-criticality-score/source.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ function getApiBaseUrl(): string {
3838
if (process.env.LF_CRITICALITY_SCORE_API_URL) {
3939
return process.env.LF_CRITICALITY_SCORE_API_URL.replace(/\/$/, '')
4040
}
41-
const host = (process.env.LF_CRITICALITY_SCORE_API_HOST ?? DEFAULT_API_HOST).trim().replace(/\/$/, '')
41+
const host = (process.env.LF_CRITICALITY_SCORE_API_HOST ?? DEFAULT_API_HOST)
42+
.trim()
43+
.replace(/\/$/, '')
4244
const port = parseInt(process.env.LF_CRITICALITY_SCORE_API_PORT ?? String(DEFAULT_API_PORT), 10)
4345
const scheme = port === 443 ? 'https' : 'http'
4446
return `${scheme}://${host}:${port}`

0 commit comments

Comments
 (0)