Commit 3587085f authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

os: fix Windows build from earlier readdir change

It worked originally, until I renamed a variable. :/

dir_windows.go:11: undefined: e
http://godashboard.appspot.com/log/092397f2ac7a1e6e812dc6bebc65b40b02368700a119343d5cee5e2e89e0fde5

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4535072
parent 0d111a62
......@@ -8,7 +8,7 @@ func (file *File) Readdirnames(n int) (names []string, err Error) {
fis, err := file.Readdir(n)
// If n > 0 and we get an error, we return now.
// If n < 0, we return whatever we got + any error.
if n > 0 && e != nil {
if n > 0 && err != nil {
return nil, err
}
names = make([]string, len(fis))
......
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