Skip to content

Commit

Permalink
Skip empty image field
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Oct 1, 2024
1 parent 6649564 commit dbfa0f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/lib/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func MapImages(rootDir string) (map[string]string, error) {
func collectImages(obj map[string]any, images map[string]string, srcGK string) {
for k, v := range obj {
if k == "image" {
if s, ok := v.(string); ok {
if s, ok := v.(string); ok && s != "" {
images[s] = srcGK
}
} else if m, ok := v.(map[string]any); ok {
Expand Down

0 comments on commit dbfa0f6

Please sign in to comment.