1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-09 13:36:56 +02:00

fix: lint issue

I was shadowing binaryName
This commit is contained in:
Carlos Alexandro Becker 2017-12-03 10:35:55 -02:00 committed by Carlos Alexandro Becker
parent 0c91f6e210
commit 208ab4df23

View File

@ -108,7 +108,8 @@ func doBuild(ctx *context.Context, build config.Build, target buildtarget.Target
var binaryName = build.Binary + ext.For(target)
var prettyName = binaryName
if ctx.Config.Archive.Format == "binary" {
binaryName, err := nameFor(ctx, target, build.Binary)
var err error
binaryName, err = nameFor(ctx, target, build.Binary)
if err != nil {
return err
}