Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
refactor: make it easier to merge
  • Loading branch information
caarlos0 committed Aug 1, 2022
1 parent 1a54007 commit 05b3fbd
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions internal/pipe/archive/archive.go
Expand Up @@ -101,11 +101,17 @@ func (Pipe) Run(ctx *context.Context) error {
for group, artifacts := range artifacts {
log.Debugf("group %s has %d binaries", group, len(artifacts))
artifacts := artifacts
g.Go(func() error {
if packageFormat(archive, artifacts[0].Goos) == "binary" {
if packageFormat(archive, artifacts[0].Goos) == "binary" {
g.Go(func() error {
return skip(ctx, archive, artifacts)
})
continue
}
g.Go(func() error {
if err := create(ctx, archive, artifacts); err != nil {
return err
}
return create(ctx, archive, artifacts)
return nil
})
}
}
Expand Down

0 comments on commit 05b3fbd

Please sign in to comment.