1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

refactor: lint issues, style

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos Alexandro Becker 2020-02-05 22:10:16 -03:00
parent d85fff06a2
commit 1435e2bcc5
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -86,14 +86,12 @@ func doRun(ctx *context.Context, client client.Client) error {
if ctx.SkipPublish {
return pipe.ErrSkipPublishEnabled
}
if strings.TrimSpace(ctx.Config.Scoop.SkipUpload) == "true" {
return pipe.Skip("scoop.skip_upload is true")
} else if strings.TrimSpace(ctx.Config.Scoop.SkipUpload) == "auto" {
if ctx.Semver.Prerelease != "" {
return pipe.Skip("release is prerelease")
}
}
if strings.TrimSpace(ctx.Config.Scoop.SkipUpload) == "auto" && ctx.Semver.Prerelease != "" {
return pipe.Skip("release is prerelease")
}
if ctx.Config.Release.Draft {
return pipe.Skip("release is marked as draft")