aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/github
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-03-01 23:07:24 +0100
committerMichael Muré <batolettre@gmail.com>2019-03-01 23:07:24 +0100
commitb6bed784e5664819250aac20b2b9690879ee6ab1 (patch)
tree66854358df3cb9de651f7688556ec5a4b8ab1868 /bridge/github
parent782576f12401c1fd75b0281f9df72b1c4fd53e1f (diff)
downloadgit-bug-b6bed784e5664819250aac20b2b9690879ee6ab1.tar.gz
github: fix potential bug due to var aliasing
Diffstat (limited to 'bridge/github')
-rw-r--r--bridge/github/import.go3
1 files changed, 2 insertions, 1 deletions
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