Skip to content

Commit 5fa42fc

Browse files
committed
restore assertion
1 parent 18efa7a commit 5fa42fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/clusterctl/client/repository/repository_github.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ func (g *gitHubRepository) getVersions(ctx context.Context) ([]string, error) {
336336
if listReleasesErr != nil {
337337
retryError = g.handleGithubErr(listReleasesErr, "failed to get the list of releases")
338338
// Return immediately if we are rate limited.
339-
if errors.As(listReleasesErr, &rateLimitError) {
339+
if _, ok := listReleasesErr.(*github.RateLimitError); ok {
340340
return false, retryError
341341
}
342342
return false, nil

0 commit comments

Comments
 (0)