all: excise some warts found by vet -shadow

These are not erroneous, just poor or confusing.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/10448043
This commit is contained in:
Rob Pike 2013-06-20 16:14:40 -07:00
parent ffde4970d0
commit 0bc7e79afd
10 changed files with 19 additions and 23 deletions

View file

@ -381,7 +381,6 @@ func TestDialer(t *testing.T) {
defer ln.Close()
ch := make(chan error, 1)
go func() {
var err error
c, err := ln.Accept()
if err != nil {
ch <- fmt.Errorf("Accept failed: %v", err)