cmd/goyacc: merge variable declaration with assignment

Found with honnef.co/go/tools/cmd/simple.

Change-Id: I04c65394f1c6404f57bb2088353325899f35011f
Reviewed-on: https://go-review.googlesource.com/38177
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Tamir Duberstein 2017-03-14 15:57:20 -04:00 committed by Ian Lance Taylor
parent 2f69a5922b
commit f2e43688df
1 changed files with 1 additions and 3 deletions

View File

@ -1225,9 +1225,7 @@ func writecode(code []rune) {
// skipcom is called after reading a '/'
//
func skipcom() int {
var c rune
c = getrune(finput)
c := getrune(finput)
if c == '/' {
for c != EOF {
if c == '\n' {