mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-30 13:32:46 -08:00
all: don't rebind variables in for loops
See https://tip.golang.org/wiki/LoopvarExperiment#does-this-mean-i-dont-have-to-write-x--x-in-my-loops-anymore Updates https://github.com/tailscale/tailscale/issues/11058 Signed-off-by: Alex Chan <[email protected]>
This commit is contained in:
1 parent
8b3e88cd09
commit
002ecb78d0
7 files changed
-18
No files matched your search
@@ -196,7 +196,6 @@ func TestComplete(t *testing.T) {
|
||||
|
||||
// Run the tests.
|
||||
for _, test := range tests {
|
||||
test := test
|
||||
name := strings.Join(test.args, "␣")
|
||||
if test.showFlags {
|
||||
name += "+flags"
|
||||
|
||||
Reference in new issue
Block a user