Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfogre committed May 7, 2024
1 parent 719360c commit 45a7ac1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions routers/api/actions/artifacts.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,11 @@ type artifactRoutes struct {
}

func (ar artifactRoutes) buildArtifactURL(runID int64, artifactHash, suffix string) string {
rootUrl := setting.AppURL
rootURL := setting.AppURL
if setting.Actions.ArtifactRootURL != "" {
rootUrl = setting.Actions.ArtifactRootURL
rootURL = setting.Actions.ArtifactRootURL
}
uploadURL := strings.TrimSuffix(rootUrl, "/") + strings.TrimSuffix(ar.prefix, "/") +
uploadURL := strings.TrimSuffix(rootURL, "/") + strings.TrimSuffix(ar.prefix, "/") +
strings.ReplaceAll(artifactRouteBase, "{run_id}", strconv.FormatInt(runID, 10)) +
"/" + artifactHash + "/" + suffix
return uploadURL
Expand Down

0 comments on commit 45a7ac1

Please sign in to comment.