Skip to content

Commit 571beaf

Browse files
committed
address copilot comments
Signed-off-by: Mózes László Máté <laszlo.mozes@nokia.com>
1 parent 19f8004 commit 571beaf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/lib/runneroptions/runneroptions.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ func (opts *RunnerOptions) InitDefaults(defaultImagePrefix string) {
6767
// ResolveToImageForCLIFunc returns a func that converts the KRM function short path to the full image url.
6868
// If the function is a catalog function, it prepends `prefix`, e.g. "set-namespace:v0.1" --> prefix + "set-namespace:v0.1".
6969
// A "/" is appended to `prefix` if it is not an empty string and does not end with a "/".
70-
func ResolveToImageForCLIFunc(prefix string) func(image string) string {
71-
prefix = strings.TrimSuffix(prefix, "/")
70+
func ResolveToImageForCLIFunc(prefix string) ImageResolveFunc {
71+
prefix = strings.TrimRight(prefix, "/")
7272
if prefix == "" {
7373
return func(image string) string {
7474
return image

0 commit comments

Comments
 (0)