aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/gitlab
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/gitlab')
-rw-r--r--bridge/gitlab/export.go2
-rw-r--r--bridge/gitlab/import.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/bridge/gitlab/export.go b/bridge/gitlab/export.go
index 83465428..19b8d496 100644
--- a/bridge/gitlab/export.go
+++ b/bridge/gitlab/export.go
@@ -75,7 +75,7 @@ func (ge *gitlabExporter) cacheAllClient(repo *cache.RepoCache, baseURL string)
}
user, err := repo.ResolveIdentityImmutableMetadata(metaKeyGitlabLogin, login)
- if err == identity.ErrIdentityNotExist {
+ if entity.IsErrNotFound(err) {
continue
}
if err != nil {
diff --git a/bridge/gitlab/import.go b/bridge/gitlab/import.go
index c7909c8f..85999e90 100644
--- a/bridge/gitlab/import.go
+++ b/bridge/gitlab/import.go
@@ -118,7 +118,7 @@ func (gi *gitlabImporter) ensureIssue(repo *cache.RepoCache, issue *gitlab.Issue
if err == nil {
return b, nil
}
- if err != bug.ErrBugNotExist {
+ if !entity.IsErrNotFound(err) {
return nil, err
}