aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/github/import.go
diff options
context:
space:
mode:
authoramine <hilalyamine@gmail.com>2019-11-19 20:12:07 +0100
committeramine <hilalyamine@gmail.com>2019-11-19 20:33:20 +0100
commitd6d5978b6dbba1adffd91ff8b86bd5e8465978f5 (patch)
treee59ac7b9f0ac75e22fca6ad428d9a07fce8a9d92 /bridge/github/import.go
parent967f19a30f0668f4df16295adcc2708607140566 (diff)
downloadgit-bug-d6d5978b6dbba1adffd91ff8b86bd5e8465978f5.tar.gz
bridge/launchpad: importer correctly emit NothingEvent
Diffstat (limited to 'bridge/github/import.go')
-rw-r--r--bridge/github/import.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/github/import.go b/bridge/github/import.go
index b89e7e02..86444057 100644
--- a/bridge/github/import.go
+++ b/bridge/github/import.go
@@ -388,7 +388,6 @@ func (gi *githubImporter) ensureTimelineComment(repo *cache.RepoCache, b *cache.
for i, edit := range edits {
if i == 0 && targetOpID != "" {
// The first edit in the github result is the comment creation itself, we already have that
- gi.out <- core.NewImportNothing("", "comment already imported")
continue
}
@@ -418,6 +417,7 @@ func (gi *githubImporter) ensureTimelineComment(repo *cache.RepoCache, b *cache.
if err != nil {
return err
}
+ gi.out <- core.NewImportComment(op.Id())
// set target for the nexr edit now that the comment is created
targetOpID = op.Id()