1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-09-16 09:26:52 +02:00

style: simplified code

This commit is contained in:
Carlos Alexandro Becker
2018-02-03 17:00:58 -02:00
committed by Carlos Alexandro Becker
parent 32ab07a180
commit 6b02042d05

5
pipeline/env/env.go vendored
View File

@@ -44,10 +44,7 @@ func (Pipe) Run(ctx *context.Context) error {
if ctx.Token == "" && err == nil {
return ErrMissingToken
}
if err != nil {
return errors.Wrap(err, "failed to load github token")
}
return nil
return errors.Wrap(err, "failed to load github token")
}
func loadEnv(env, path string) (string, error) {