Skip to content

Commit ae5347f

Browse files
committed
fix(commitserver): remove strings.TrimSpace from hydrator path processing
Signed-off-by: sangyeong01 <[email protected]>
1 parent 81feb51 commit ae5347f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

commitserver/commit/hydratorhelper.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"fmt"
66
"os"
77
"path/filepath"
8-
"strings"
98
"text/template"
109

1110
"github.com/Masterminds/sprig/v3"
@@ -53,8 +52,7 @@ func WriteForPaths(root *os.Root, repoUrl, drySha string, dryCommitMetadata *app
5352
}
5453

5554
for _, p := range paths {
56-
hydratePath := strings.TrimSpace(p.Path)
57-
55+
hydratePath := p.Path
5856
if hydratePath == "." {
5957
hydratePath = ""
6058
}
@@ -200,4 +198,4 @@ func writeManifests(root *os.Root, dirPath string, manifests []*apiclient.Hydrat
200198
}
201199

202200
return nil
203-
}
201+
}

0 commit comments

Comments
 (0)