From b6bed784e5664819250aac20b2b9690879ee6ab1 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Fri, 1 Mar 2019 23:07:24 +0100 Subject: github: fix potential bug due to var aliasing --- bridge/github/import.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bridge/github/import.go b/bridge/github/import.go index f6b729b7..d641b192 100644 --- a/bridge/github/import.go +++ b/bridge/github/import.go @@ -423,7 +423,8 @@ func (gi *githubImporter) ensureComment(repo *cache.RepoCache, b *cache.BugCache return err } - target, err := b.ResolveOperationWithMetadata(keyGithubId, parseId(comment.Id)) + var target git.Hash + target, err = b.ResolveOperationWithMetadata(keyGithubId, parseId(comment.Id)) if err != nil && err != cache.ErrNoMatchingOp { // real error return err -- cgit