diff options
author | Michael Muré <batolettre@gmail.com> | 2019-03-01 23:07:24 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2019-03-01 23:07:24 +0100 |
commit | b6bed784e5664819250aac20b2b9690879ee6ab1 (patch) | |
tree | 66854358df3cb9de651f7688556ec5a4b8ab1868 /bridge/github/import.go | |
parent | 782576f12401c1fd75b0281f9df72b1c4fd53e1f (diff) | |
download | git-bug-b6bed784e5664819250aac20b2b9690879ee6ab1.tar.gz |
github: fix potential bug due to var aliasing
Diffstat (limited to 'bridge/github/import.go')
-rw-r--r-- | bridge/github/import.go | 3 |
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 |