mirror of https://github.com/golang/go.git
parent
31de975af5
commit
3c351e4aa8
|
|
@ -115,8 +115,7 @@ func openFileNolog(name string, flag int, perm FileMode) (*File, error) {
|
|||
}
|
||||
return nil, &PathError{Op: "open", Path: name, Err: e}
|
||||
}
|
||||
f := newFile(r, name, "file")
|
||||
return f, nil
|
||||
return newFile(r, name, "file"), nil
|
||||
}
|
||||
|
||||
func (file *file) close() error {
|
||||
|
|
|
|||
Loading…
Reference in New Issue