Skip to content

Commit fc22df3

Browse files
fix(auth): fix typo that resulted in panic on token regen error (#84)
1 parent c731717 commit fc22df3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

auth/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func Regenerate(c *deis.Client, username string, all bool) (string, error) {
9696
}
9797

9898
res, reqErr := c.Request("POST", "/v2/auth/tokens/", reqBody)
99-
if err != nil && !deis.IsErrAPIMismatch(reqErr) {
99+
if reqErr != nil && !deis.IsErrAPIMismatch(reqErr) {
100100
return "", reqErr
101101
}
102102
defer res.Body.Close()

0 commit comments

Comments
 (0)