]> Cypherpunks.ru repositories - gostls13.git/commit
container/list: remove temporary variable `n`
authorJoe Kyo <xunianzu@gmail.com>
Wed, 13 Nov 2019 06:47:41 +0000 (00:47 -0600)
committerRobert Griesemer <gri@golang.org>
Fri, 21 Feb 2020 18:32:32 +0000 (18:32 +0000)
commit2edeb23bf5c547078392f1aaedc1a3840c72e3d8
tree0f992024830be1eeb21758c172f91d8841e21738
parent7855d6835d3a27e967a0c2d748f9f39305e7ba47
container/list: remove temporary variable `n`

The variable `n` for saving the pointer of the next
element when insert new element into the list turns
out to be unnecessary.

Change-Id: I17b85fd8350738815c320a83945525b60c2f04c5
Reviewed-on: https://go-review.googlesource.com/c/go/+/207037
Reviewed-by: Robert Griesemer <gri@golang.org>
src/container/list/list.go