Skip to content

Commit 382f772

Browse files
committed
chore: remove condition for string.Replace
1 parent 888ed4a commit 382f772

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

internal/analysis/analysis.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,7 @@ func (a *analysisOrchestrator) retrieveFindings(ctx context.Context, scanJobId u
415415
func (a *analysisOrchestrator) host(isHidden bool) string {
416416
apiUrl := strings.TrimRight(a.config.SnykApi(), "/")
417417
// Temporary Workaround because intellij currently adds a /v1 suffix to the EndpointAPI
418-
if strings.Contains(apiUrl, "/v1") {
419-
apiUrl = strings.Replace(apiUrl, "/v1", "", 1)
420-
}
418+
apiUrl = strings.Replace(apiUrl, "/v1", "", 1)
421419
path := "rest"
422420
if isHidden {
423421
path = "hidden"

0 commit comments

Comments
 (0)