Skip to content

Commit

Permalink
fix: fix miss makezero bug (#1628)
Browse files Browse the repository at this point in the history
Signed-off-by: alingse <alingse@foxmail.com>
  • Loading branch information
alingse authored May 27, 2024
1 parent a836e90 commit 89d9558
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/imagejob/imagejob_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func PopCachedNodeImagesForJob(job *appsv1alpha1.ImagePullJob) []string {
}

func writeCache(job *appsv1alpha1.ImagePullJob, nodeImages []*appsv1alpha1.NodeImage) {
names := make([]string, len(nodeImages))
names := make([]string, 0, len(nodeImages))
for _, n := range nodeImages {
names = append(names, n.Name)
}
Expand Down

0 comments on commit 89d9558

Please sign in to comment.