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
Signed-off-by: GitHub <[email protected]>
  • Loading branch information
satotake authored Jun 20, 2021
1 parent 5d9d523 commit 0b0f74f
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 0b0f74f

Please sign in to comment.