mirror of https://github.com/golang/go.git
net: use short variable declaration
R=rsc CC=golang-dev https://golang.org/cl/1019043
This commit is contained in:
parent
be9f6344a7
commit
b5da6ea4dd
|
|
@ -19,8 +19,7 @@ func TestReadLine(t *testing.T) {
|
|||
}
|
||||
br := bufio.NewReader(fd)
|
||||
|
||||
var file *file
|
||||
file, err = open(filename)
|
||||
file, err := open(filename)
|
||||
if file == nil {
|
||||
t.Fatalf("net.open(%s) = nil", filename)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue