Skip to content

Commit

Permalink
Flatten one level of nesting
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie committed Oct 30, 2023
1 parent c0b9a50 commit 5610286
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pkg/compose/compose.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,9 @@ func TargetTags(files []bake.File) (map[string][]string, error) {
var xb xbake
yb, _ := yaml.Marshal(bakeExtension)
err := yaml.Unmarshal(yb, &xb)
if err == nil {
if len(xb.Tags) > 0 {
targetTags[target] = xb.Tags
continue
}
if err == nil && len(xb.Tags) > 0 {
targetTags[target] = xb.Tags
continue
}
}

Expand Down

0 comments on commit 5610286

Please sign in to comment.