Skip to content

Commit ce1c788

Browse files
committed
minor code cleanup
Signed-off-by: Mehrad Dadar <[email protected]>
1 parent 67f7b84 commit ce1c788

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/compose/create.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,8 +432,8 @@ func (s *composeService) prepareLabels(service types.ServiceConfig, number int)
432432
labels[api.ContainerNumberLabel] = strconv.Itoa(number)
433433

434434
var dependencies []string
435-
for s := range service.DependsOn {
436-
dependencies = append(dependencies, s+":"+service.DependsOn[s].Condition)
435+
for s, d := range service.DependsOn {
436+
dependencies = append(dependencies, s+":"+d.Condition)
437437
}
438438
labels[api.DependenciesLabel] = strings.Join(dependencies, ",")
439439
return labels, nil

0 commit comments

Comments
 (0)