Commit b5da6ea4 authored by Christopher Wedgwood's avatar Christopher Wedgwood Committed by Russ Cox

net: use short variable declaration

R=rsc
CC=golang-dev
https://golang.org/cl/1019043
parent be9f6344
......@@ -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)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment