aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/github
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2022-11-19 11:33:12 +0100
committerMichael Muré <batolettre@gmail.com>2022-11-28 17:20:25 +0100
commit0ac39a7ab5db077fcf0df827e32bf6e625e980da (patch)
treee453d6fd244cb322bdc6305c0088aa3c0331b075 /bridge/github
parentc6bb6b9c7ecddb679966b1561e2e909a9ee5e8cd (diff)
downloadgit-bug-0ac39a7ab5db077fcf0df827e32bf6e625e980da.tar.gz
WIP
Diffstat (limited to 'bridge/github')
-rw-r--r--bridge/github/export.go2
-rw-r--r--bridge/github/import.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/bridge/github/export.go b/bridge/github/export.go
index 675ed039..5d1d8661 100644
--- a/bridge/github/export.go
+++ b/bridge/github/export.go
@@ -90,7 +90,7 @@ func (ge *githubExporter) cacheAllClient(repo *cache.RepoCache) error {
}
user, err := repo.ResolveIdentityImmutableMetadata(metaKeyGithubLogin, login)
- if err == identity.ErrIdentityNotExist {
+ if entity.IsErrNotFound(err) {
continue
}
if err != nil {
diff --git a/bridge/github/import.go b/bridge/github/import.go
index 7ccac3fb..a64b7b27 100644
--- a/bridge/github/import.go
+++ b/bridge/github/import.go
@@ -190,7 +190,7 @@ func (gi *githubImporter) ensureIssue(ctx context.Context, repo *cache.RepoCache
if err == nil {
return b, nil
}
- if err != bug.ErrBugNotExist {
+ if !entity.IsErrNotFound(err) {
return nil, err
}