diff options
author | Amine Hilaly <hilalyamine@gmail.com> | 2019-08-17 23:46:10 +0200 |
---|---|---|
committer | Amine Hilaly <hilalyamine@gmail.com> | 2019-08-18 23:50:13 +0200 |
commit | df412430ab35106df57bc32d6dd01bd088bf4735 (patch) | |
tree | ea126fb14a3d5abcdfb66e0128c9cbd044f6cb02 /bridge/gitlab/import.go | |
parent | 501a9310807d4c53cf9e28b84d88aebd64a04ead (diff) | |
download | git-bug-df412430ab35106df57bc32d6dd01bd088bf4735.tar.gz |
bridge/github: improve error handling and Nothing events
vendor: add package golang.org/x/sync/errgroup
Diffstat (limited to 'bridge/gitlab/import.go')
-rw-r--r-- | bridge/gitlab/import.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bridge/gitlab/import.go b/bridge/gitlab/import.go index 40ac06d3..1391bf88 100644 --- a/bridge/gitlab/import.go +++ b/bridge/gitlab/import.go @@ -99,8 +99,7 @@ func (gi *gitlabImporter) ensureIssue(repo *cache.RepoCache, issue *gitlab.Issue // resolve bug b, err := repo.ResolveBugCreateMetadata(keyGitlabUrl, issue.WebURL) if err == nil { - reason := fmt.Sprintf("bug already imported") - gi.out <- core.NewImportNothing("", reason) + gi.out <- core.NewImportNothing("", "bug already imported") return b, nil } if err != bug.ErrBugNotExist { |