From d6d5978b6dbba1adffd91ff8b86bd5e8465978f5 Mon Sep 17 00:00:00 2001 From: amine Date: Tue, 19 Nov 2019 20:12:07 +0100 Subject: bridge/launchpad: importer correctly emit NothingEvent --- bridge/github/import.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bridge/github/import.go') 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() -- cgit