]> Cypherpunks repositories - gostls13.git/commit
runtime/pprof: actually use tag parameter
authorDaniel Martí <mvdan@mvdan.cc>
Tue, 7 Mar 2017 16:05:40 +0000 (16:05 +0000)
committerRuss Cox <rsc@golang.org>
Tue, 7 Mar 2017 20:01:05 +0000 (20:01 +0000)
commit5ed952368e3777845afd934e38219c5567b09cc4
tree5fb8c3ab2ccbbad3262e3cb5ab581c482bf8732b
parent143fd8ef2ab4450d7298b59a45d15232518f982d
runtime/pprof: actually use tag parameter

It's only ever called with the value it was using, but the code was
counterintuitive. Use the parameter instead, like the other funcs near
it.

Found by github.com/mvdan/unparam.

Change-Id: I45855e11d749380b9b2a28e6dd1d5dedf119a19b
Reviewed-on: https://go-review.googlesource.com/37893
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/pprof/proto.go