]> Cypherpunks repositories - gostls13.git/commit
reflect: remove dead v.typ assignment
authorDaniel Martí <mvdan@mvdan.cc>
Wed, 10 May 2017 16:21:21 +0000 (18:21 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 11 May 2017 08:07:21 +0000 (08:07 +0000)
commit19b05acd13da49ebff6812012d20e5ace6957b58
treeb0947a92a98a31659c9e29beb551f9903b8f44c7
parentc061f51e7289437368a0d1cd248fd9fe0dc5b59f
reflect: remove dead v.typ assignment

v is not a pointer receiver, and v.typ isn't used in the lines below.
The assignment is dead. Remove it.

Keep the comment, as it refers to the whole case block and not just the
removed line.

Change-Id: Icb2d20c287d9a41bf620ebe5cdec764cd84178a7
Reviewed-on: https://go-review.googlesource.com/43134
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/reflect/value.go