Skip to content

Commit

Permalink
Fix panic on empty target sources map
Browse files Browse the repository at this point in the history
  • Loading branch information
nikkelma committed Jan 13, 2022
1 parent 99c59ce commit 49e4029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/collection/imagetxt/imagetxt.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (it *ImageTxt) compute() error {
}

var pullAll bool
var targetSources map[string]bool
targetSources := make(map[string]bool)

if len(foundSources) == 0 || (len(it.IncludeSources) == 0 && len(it.ExcludeSources) == 0) {
// pull all found images
Expand Down

0 comments on commit 49e4029

Please sign in to comment.