Skip to content

Commit

Permalink
refactor: lint issues, style
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
  • Loading branch information
caarlos0 committed Feb 6, 2020
1 parent d85fff0 commit 1435e2b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions internal/pipe/scoop/scoop.go
Expand Up @@ -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")
Expand Down

0 comments on commit 1435e2b

Please sign in to comment.