Skip to content
Permalink
Browse files
refactor: make it easier to merge
  • Loading branch information
caarlos0 committed Aug 1, 2022
1 parent 1a54007 commit 05b3fbd305fb8decb82ae3b2a95be81ed92505e7
Showing 1 changed file with 9 additions and 3 deletions.
@@ -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
})
}
}

0 comments on commit 05b3fbd

Please sign in to comment.