style(cmd/lint): removed slash in subcharts fp

Signed-off-by: Nick Lee <nmkyu.lee@gmail.com>
pull/7288/head
Nick Lee 5 years ago
parent cf4bee7ac8
commit 9a790c21dd

@ -55,7 +55,7 @@ func newLintCmd(out io.Writer) *cobra.Command {
}
if client.WithSubcharts {
for _, p := range paths {
filepath.Walk(filepath.Join(p, "/charts"), func(path string, info os.FileInfo, err error) error {
filepath.Walk(filepath.Join(p, "charts"), func(path string, info os.FileInfo, err error) error {
if info != nil {
if info.Name() == "Chart.yaml" {
paths = append(paths, filepath.Dir(path))

Loading…
Cancel
Save