aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/github
diff options
context:
space:
mode:
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
}