Commit adcb5083 authored by Andrew Gerrand's avatar Andrew Gerrand

godoc: fix vet warnings for untagged struct literals

src/cmd/godoc/filesystem.go:337:10: os.PathError struct literal uses untagged fields
src/cmd/godoc/filesystem.go:355:10: os.PathError struct literal uses untagged fields

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5820046
parent 5659826e
......@@ -334,7 +334,7 @@ func (ns nameSpace) Open(path string) (readSeekCloser, error) {
}
}
if err == nil {
err = &os.PathError{"open", path, os.ErrNotExist}
err = &os.PathError{Op: "open", Path: path, Err: os.ErrNotExist}
}
return nil, err
}
......@@ -352,7 +352,7 @@ func (ns nameSpace) stat(path string, f func(FileSystem, string) (os.FileInfo, e
}
}
if err == nil {
err = &os.PathError{"stat", path, os.ErrNotExist}
err = &os.PathError{Op: "stat", Path: path, Err: os.ErrNotExist}
}
return nil, err
}
......
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