Skip to content

Commit

Permalink
fix: do not wrap err if its nil
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 Mar 31, 2020
1 parent cca2568 commit 7661587
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/client/github.go
Expand Up @@ -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
}

0 comments on commit 7661587

Please sign in to comment.