Skip to content

Commit

Permalink
fix: remove warning
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Dec 27, 2022
1 parent ee9816b commit 33528d7
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions internal/artifact/artifact.go
Expand Up @@ -289,18 +289,6 @@ func New() Artifacts {
func (artifacts Artifacts) List() []*Artifact {
artifacts.lock.Lock()
defer artifacts.lock.Unlock()
names := map[string]bool{}
for _, item := range artifacts.items {
if item.Name == "" {
continue
}
plat := item.Goos + item.Goarch + item.Goarm + item.Gomips + item.Goamd64
if names[item.Name+"_"+plat] {
log.WithField("name", item.Name).
Warn("multiple artifacts with the same name: this may cause errors")
}
names[item.Name+"_"+plat] = true
}
return artifacts.items
}

Expand Down

0 comments on commit 33528d7

Please sign in to comment.