mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-10 03:47:03 +02:00
fix: shadows declaration (vetshadow)
vetshadow throwed two warnings of shadows declaration of err
This commit is contained in:
parent
d875dd0dd5
commit
51bc617d32
@ -126,18 +126,17 @@ func doRun(ctx *context.Context) error {
|
|||||||
case modeBinary:
|
case modeBinary:
|
||||||
// Loop over all builds, because we want to publish every build to Artifactory
|
// Loop over all builds, because we want to publish every build to Artifactory
|
||||||
for _, build := range ctx.Config.Builds {
|
for _, build := range ctx.Config.Builds {
|
||||||
if err := runPipeForModeBinary(ctx, instance, build); err != nil {
|
if err = runPipeForModeBinary(ctx, instance, build); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
err := fmt.Errorf("artifactory: mode \"%s\" not supported", v)
|
err = fmt.Errorf("artifactory: mode \"%s\" not supported", v)
|
||||||
log.WithFields(log.Fields{
|
log.WithFields(log.Fields{
|
||||||
"instance": instance.Name,
|
"instance": instance.Name,
|
||||||
"mode": v,
|
"mode": v,
|
||||||
}).Error(err.Error())
|
}).Error(err.Error())
|
||||||
return err
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user