We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a91d74f commit 87e6a04Copy full SHA for 87e6a04
1 file changed
services/apps/automatic_projects_discovery_worker/src/sources/lf-criticality-score/source.ts
@@ -38,7 +38,9 @@ function getApiBaseUrl(): string {
38
if (process.env.LF_CRITICALITY_SCORE_API_URL) {
39
return process.env.LF_CRITICALITY_SCORE_API_URL.replace(/\/$/, '')
40
}
41
- const host = (process.env.LF_CRITICALITY_SCORE_API_HOST ?? DEFAULT_API_HOST).trim().replace(/\/$/, '')
+ const host = (process.env.LF_CRITICALITY_SCORE_API_HOST ?? DEFAULT_API_HOST)
42
+ .trim()
43
+ .replace(/\/$/, '')
44
const port = parseInt(process.env.LF_CRITICALITY_SCORE_API_PORT ?? String(DEFAULT_API_PORT), 10)
45
const scheme = port === 443 ? 'https' : 'http'
46
return `${scheme}://${host}:${port}`
0 commit comments