aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/gitlab/import.go
diff options
context:
space:
mode:
authorAmine Hilaly <hilalyamine@gmail.com>2019-07-17 22:41:42 +0200
committerAmine Hilaly <hilalyamine@gmail.com>2019-07-23 17:18:04 +0200
commitce3a2788ab3bc9f205bcc27b03355155d641c2f4 (patch)
tree6565bce7af28395e0a244e363b387865bc85e557 /bridge/gitlab/import.go
parent05a3aec1a89f1b8c56a464558bbe39f96a42b267 (diff)
downloadgit-bug-ce3a2788ab3bc9f205bcc27b03355155d641c2f4.tar.gz
bridge/gitlab: fix note error handling bug
bridge/gitlab: remove unused functions
Diffstat (limited to 'bridge/gitlab/import.go')
-rw-r--r--bridge/gitlab/import.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/gitlab/import.go b/bridge/gitlab/import.go
index d94dbe2e..93ad8570 100644
--- a/bridge/gitlab/import.go
+++ b/bridge/gitlab/import.go
@@ -137,7 +137,7 @@ func (gi *gitlabImporter) ensureNote(repo *cache.RepoCache, b *cache.BugCache, n
}
hash, errResolve := b.ResolveOperationWithMetadata(keyGitlabId, id)
- if err != nil && err != cache.ErrNoMatchingOp {
+ if errResolve != cache.ErrNoMatchingOp {
return err
}