Skip to content

Commit

Permalink
fix(helm): Removing trailing slash for having clean concat
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <bob@vibioh.fr>
  • Loading branch information
ViBiOh committed May 11, 2021
1 parent e2f60d9 commit 932112f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ketchup/ketchups.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (a app) handleCreate(w http.ResponseWriter, r *http.Request) {
case model.Github:
repository = model.NewGithubRepository(0, name)
case model.Helm:
repository = model.NewHelmRepository(0, name, r.FormValue("part"))
repository = model.NewHelmRepository(0, strings.TrimSuffix(name, "/"), r.FormValue("part"))
default:
a.rendererApp.Error(w, httpModel.WrapInternal(fmt.Errorf("unhandled repository kind `%s`", repositoryKind)))
}
Expand Down

0 comments on commit 932112f

Please sign in to comment.