Skip to content

Commit 99b0d83

Browse files
committed
fixup: use filepath
1 parent 76f8d88 commit 99b0d83

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkg/lib/filesystem/paths.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"io/fs"
66
"kitops/pkg/lib/constants"
77
"os"
8-
"path"
98
"path/filepath"
109
"strings"
1110
)
@@ -59,8 +58,8 @@ func FindKitfileInPath(contextDir string) string {
5958
var defaultKitFileNames = []string{"Kitfile", "kitfile", ".kitfile"}
6059
for _, fileName := range defaultKitFileNames {
6160
if _, exists := PathExists(filepath.Join(contextDir, fileName)); exists {
62-
return path.Join(contextDir, fileName)
61+
return filepath.Join(contextDir, fileName)
6362
}
6463
}
65-
return path.Join(contextDir, constants.DefaultKitFileName)
64+
return filepath.Join(contextDir, constants.DefaultKitFileName)
6665
}

0 commit comments

Comments
 (0)