Skip to content

Commit

Permalink
use filepath to combire dirs (#9358)
Browse files Browse the repository at this point in the history
Signed-off-by: ls0f <[email protected]>
  • Loading branch information
ls0f authored May 11, 2022
1 parent 3c1969b commit 5f5d7aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reposerver/repository/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ type repositories struct {

func getHelmDependencyRepos(appPath string) ([]*v1alpha1.Repository, error) {
repos := make([]*v1alpha1.Repository, 0)
f, err := ioutil.ReadFile(fmt.Sprintf("%s/%s", appPath, "Chart.yaml"))
f, err := ioutil.ReadFile(filepath.Join(appPath, "Chart.yaml"))
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 5f5d7aa

Please sign in to comment.