Skip to content

Commit 570beca

Browse files
author
Diego Alfonso
committed
chore: Remove extra empty subpath validation on MergeSourceImage
Signed-off-by: Diego Alfonso <[email protected]>
1 parent fd3b47a commit 570beca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/apis/cartographer/v1alpha1/workload_helpers.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ func (w *WorkloadSpec) MergeSourceImage(image string) {
355355
w.Source = &Source{
356356
Image: image,
357357
}
358-
if stash != nil && stash.Subpath != "" {
358+
if stash != nil {
359359
w.Source.Subpath = stash.Subpath
360360
}
361361
}

0 commit comments

Comments
 (0)