1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-03 13:11:48 +02:00

fix: do not wrap err if its nil

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos Alexandro Becker 2020-03-31 10:30:16 -03:00
parent cca25688d0
commit 7661587a9e
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -171,5 +171,8 @@ func (c *githubClient) Upload(
if resp.StatusCode == 422 {
return err
}
return RetriableError{err}
if err != nil {
return RetriableError{err}
}
return nil
}