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:
parent
2f69a5922b
commit
f2e43688df
|
|
@ -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' {
|
||||
|
|
|
|||
Loading…
Reference in New Issue