Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
assign empty slice if local digests is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
satotake committed Jun 20, 2021
1 parent 7bf7eeb commit 72713ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/compose/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,10 @@ func (s *composeService) pullDryRun(ctx context.Context, project *types.Project,
var results []pullDryRunServiceResult

for _, service := range project.Services {
l := localDigests[service.Image]
l, ok := localDigests[service.Image]
if !ok {
l = []string{}
}
d := dstrDigests[service.Image]
plan := getPullPlan(service, l, d)
result := &pullDryRunServiceResult{
Expand Down

0 comments on commit 72713ce

Please sign in to comment.