We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 168c556 commit a91d74fCopy full SHA for a91d74f
1 file changed
services/apps/automatic_projects_discovery_worker/src/sources/lf-criticality-score/source.ts
@@ -38,7 +38,7 @@ 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).replace(/\/$/, '')
+ const host = (process.env.LF_CRITICALITY_SCORE_API_HOST ?? DEFAULT_API_HOST).trim().replace(/\/$/, '')
42
const port = parseInt(process.env.LF_CRITICALITY_SCORE_API_PORT ?? String(DEFAULT_API_PORT), 10)
43
const scheme = port === 443 ? 'https' : 'http'
44
return `${scheme}://${host}:${port}`
0 commit comments