aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/github
diff options
context:
space:
mode:
authorAmine Hilaly <hilalyamine@gmail.com>2019-08-17 23:46:10 +0200
committerAmine Hilaly <hilalyamine@gmail.com>2019-08-18 23:50:13 +0200
commitdf412430ab35106df57bc32d6dd01bd088bf4735 (patch)
treeea126fb14a3d5abcdfb66e0128c9cbd044f6cb02 /bridge/github
parent501a9310807d4c53cf9e28b84d88aebd64a04ead (diff)
downloadgit-bug-df412430ab35106df57bc32d6dd01bd088bf4735.tar.gz
bridge/github: improve error handling and Nothing events
vendor: add package golang.org/x/sync/errgroup
Diffstat (limited to 'bridge/github')
-rw-r--r--bridge/github/import.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/bridge/github/import.go b/bridge/github/import.go
index 9fef9cb5..7c4deb50 100644
--- a/bridge/github/import.go
+++ b/bridge/github/import.go
@@ -369,8 +369,7 @@ func (gi *githubImporter) ensureTimelineComment(repo *cache.RepoCache, b *cache.
targetOpID, err := b.ResolveOperationWithMetadata(keyGithubId, parseId(item.Id))
if err == nil {
- reason := fmt.Sprintf("comment already imported")
- gi.out <- core.NewImportNothing("", reason)
+ gi.out <- core.NewImportNothing("", "comment already imported")
} else if err != cache.ErrNoMatchingOp {
// real error
return err