diff --git a/cache/repo_cache.go b/cache/repo_cache.go index de8b0fa92650ca32bef37f8863497f8c4bafbbbb..7ae8bb1dc6e2ef0fc4ed6cae5c61da6817c174ad 100644 --- a/cache/repo_cache.go +++ b/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()