cache: relay early the merge events

Michael Muré created

Change summary

cache/repo_cache.go | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)

Detailed changes

cache/repo_cache.go 🔗

@@ -332,6 +332,8 @@ func (c *RepoCache) MergeAll(remote string) <-chan bug.MergeResult {
 
 		results := bug.MergeAll(c.repo, remote)
 		for result := range results {
+			out <- result
+
 			if result.Err != nil {
 				continue
 			}
@@ -343,11 +345,7 @@ func (c *RepoCache) MergeAll(remote string) <-chan bug.MergeResult {
 				b := result.Bug
 				snap := b.Compile()
 				c.excerpts[id] = NewBugExcerpt(b, &snap)
-
-			default:
 			}
-
-			out <- result
 		}
 
 		err := c.write()