]> Cypherpunks repositories - gostls13.git/commit
runtime/pprof: use switch for GOOS check in testCPUProfile
authorTobias Klauser <tklauser@distanz.ch>
Wed, 1 Nov 2017 16:06:52 +0000 (17:06 +0100)
committerTobias Klauser <tobias.klauser@gmail.com>
Thu, 2 Nov 2017 07:21:28 +0000 (07:21 +0000)
commit2dd110f9a73b369bebc1f1d99576ab2170827652
treef60189c14191e1157c2230d883ece5f69e9c6d8c
parent15f07dbf59e223ca3116eb57868632082657d3a6
runtime/pprof: use switch for GOOS check in testCPUProfile

Since CL 33071, testCPUProfile is only one user of the badOS map.
Replace it by the corresponding switch, with the "plan9" case removed
because it is already checked earlier in the same function.

Change-Id: Id647b8ee1fd37516bb702b35b3c9296a4f56b61b
Reviewed-on: https://go-review.googlesource.com/75110
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/pprof/pprof_test.go