]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: remove unnecessary nil check
authorTobias Klauser <tklauser@distanz.ch>
Tue, 31 Oct 2017 22:25:09 +0000 (23:25 +0100)
committerTobias Klauser <tobias.klauser@gmail.com>
Wed, 1 Nov 2017 08:21:26 +0000 (08:21 +0000)
commit235a25c30297bb58792654e396d7b7369286b2de
treed2fcfea59dbc9a630f5cadb557b6191e54caeff7
parentf265f5db5d71f120eb6e2cec25ab6dfc3fb249f3
cmd/cgo: remove unnecessary nil check

commentText is only called if g != nil in ParseGo, so the check inside
commentText is redundant and can be deleted.

Change-Id: I130c18b738527c96bc59950b354a50b9e23f92e9
Reviewed-on: https://go-review.googlesource.com/74871
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/cgo/ast.go