You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ts...@apache.org on 2022/06/17 03:55:00 UTC
[camel-k] 02/02: Fixed typo
This is an automated email from the ASF dual-hosted git repository.
tsato pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit b47c9ccb31cb3a519f75a1d395dc995457475063
Author: Adriano Machado <unknown>
AuthorDate: Thu Jun 16 09:57:55 2022 -0400
Fixed typo
---
pkg/resources/resources_support.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pkg/resources/resources_support.go b/pkg/resources/resources_support.go
index 684fab2f9..28fa9ab4f 100644
--- a/pkg/resources/resources_support.go
+++ b/pkg/resources/resources_support.go
@@ -104,7 +104,7 @@ func WithPrefix(pathPrefix string) ([]string, error) {
var res []string
for i := range paths {
- path := filepath.FromSlash(paths[i])
+ path := filepath.ToSlash(paths[i])
if result, _ := filepath.Match(pathPrefix+"*", path); result {
res = append(res, path)
}
@@ -150,5 +150,5 @@ func Resources(dirName string) ([]string, error) {
}
func openAsset(path string) (http.File, error) {
- return assets.Open(filepath.FromSlash(path))
+ return assets.Open(filepath.ToSlash(path))
}