]> Cypherpunks repositories - gostls13.git/commit
container/list: remove unnecessary code
authorGusted <williamzijl7@hotmail.com>
Mon, 25 Oct 2021 23:45:44 +0000 (01:45 +0200)
committerIan Lance Taylor <iant@golang.org>
Tue, 26 Oct 2021 00:30:24 +0000 (00:30 +0000)
commitb36b001ff13768fd1f9664b34c6d2b7948f66d4d
tree75735a126ef3ae0a0fb64e3c4c75c3fbdf7f0f06
parente9eb66da307ec2da922a05b890b13363ea4e830e
container/list: remove unnecessary code

Remove a unnecessary statement in the test function, the variables
aren't checked afterwards. Also remove return statements in helper
functions and remove the declaration that a the helper function return a
value. The return value isn't used in the current state of code

Change-Id: I5bc384104c1002c4138e0894938778ae9710ce4d
Reviewed-on: https://go-review.googlesource.com/c/go/+/358714
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
Trust: Ian Lance Taylor <iant@golang.org>
src/container/list/list.go
src/container/list/list_test.go