net: use short variable declaration

R=rsc
CC=golang-dev
https://golang.org/cl/1019043
This commit is contained in:
Christopher Wedgwood 2010-04-29 11:02:10 -07:00 committed by Russ Cox
parent be9f6344a7
commit b5da6ea4dd

View File

@ -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)
}