mirror of
https://github.com/ossf/scorecard.git
synced 2024-09-19 13:07:17 +03:00
Check error type instead of value (#592)
Co-authored-by: Azeem Shaikh <azeems@google.com>
This commit is contained in:
parent
db02490da4
commit
bfe0169326
@ -84,8 +84,8 @@ func RunScorecards(ctx context.Context,
|
||||
}
|
||||
defer logStats(ctx, time.Now())
|
||||
|
||||
var e clients.ErrRepoUnavailable
|
||||
if err := repoClient.InitRepo(repo.Owner, repo.Repo); errors.Is(err, &e) {
|
||||
var e *clients.ErrRepoUnavailable
|
||||
if err := repoClient.InitRepo(repo.Owner, repo.Repo); errors.As(err, &e) {
|
||||
// Unable to access repo URL. Continue.
|
||||
log.Printf("%s: %v", repo.URL(), err)
|
||||
return repos.RepoResult{
|
||||
|
Loading…
Reference in New Issue
Block a user