mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
style: simplified code
This commit is contained in:
parent
32ab07a180
commit
6b02042d05
5
pipeline/env/env.go
vendored
5
pipeline/env/env.go
vendored
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user