1
0
mirror of https://github.com/golang/go synced 2024-11-08 11:46:31 -07:00
go/src/cmd/cgo
Tobias Klauser 235a25c302 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>
2017-11-01 08:21:26 +00:00
..
ast.go cmd/cgo: remove unnecessary nil check 2017-11-01 08:21:26 +00:00
doc.go cmd/asm, cmd/cgo, cmd/compile, cmd/cover, cmd/link: use standard -V output 2017-10-06 20:28:40 +00:00
gcc.go all: revert "all: prefer strings.IndexByte over strings.Index" 2017-10-05 23:19:10 +00:00
godefs.go all: revert "all: prefer strings.IndexByte over strings.Index" 2017-10-05 23:19:10 +00:00
main.go cmd/asm, cmd/cgo, cmd/compile, cmd/cover, cmd/link: use standard -V output 2017-10-06 20:28:40 +00:00
out.go
util.go