Skip to content

Commit f3eefc6

Browse files
Shubham HibareShubham Hibare
authored andcommitted
fix: handle revocation 401 gracefully, add retry on 400/404, improve policy error messages, fix docs
1 parent 246b25b commit f3eefc6

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

internal/clients/github/client.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ func (c *Client) RevokeToken(ctx context.Context, token string) error {
129129
resp, err := gh.Apps.RevokeInstallationToken(ctx)
130130
if err != nil {
131131
// 401 means the token is already invalid (expired or revoked),
132-
// which achieves the same goal as revocation.
133132
if resp != nil && resp.StatusCode == http.StatusUnauthorized {
134133
return nil
135134
}

0 commit comments

Comments
 (0)