1
0
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:
Andy Grunwald 2017-12-09 21:06:04 +01:00
parent d875dd0dd5
commit 51bc617d32

View File

@ -126,18 +126,17 @@ func doRun(ctx *context.Context) error {
case modeBinary:
// Loop over all builds, because we want to publish every build to Artifactory
for _, build := range ctx.Config.Builds {
if err := runPipeForModeBinary(ctx, instance, build); err != nil {
if err = runPipeForModeBinary(ctx, instance, build); err != nil {
return err
}
}
default:
err := fmt.Errorf("artifactory: mode \"%s\" not supported", v)
err = fmt.Errorf("artifactory: mode \"%s\" not supported", v)
log.WithFields(log.Fields{
"instance": instance.Name,
"mode": v,
}).Error(err.Error())
return err
}
if err != nil {