]> Cypherpunks repositories - gostls13.git/commit
runtime: simplify slice expression to sliced value itself
authorIskander Sharipov <iskander.sharipov@intel.com>
Wed, 11 Jul 2018 20:34:18 +0000 (23:34 +0300)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 22 Aug 2018 19:48:18 +0000 (19:48 +0000)
commitfa6639d62664ecd710b112eb1c1e759104c9193c
tree071842eb4d92651dbc38b7bc5cd42e5f91fd0871
parent0a519401651f46a098c5c295943cc1c48e53a48c
runtime: simplify slice expression to sliced value itself

Replace `x[:]` where x is a slice with just `x`.

Found using https://go-critic.github.io/overview.html#unslice-ref

Change-Id: Ib0ee16e1d49b2a875b6b92a770049acc33208362
Reviewed-on: https://go-review.googlesource.com/123375
Run-TryBot: Iskander Sharipov <iskander.sharipov@intel.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/trace.go