Fix go vet issues
parent
04a79bdefd
commit
040229b316
|
@ -44,11 +44,11 @@ func dir2Qid(d os.FileInfo) *Qid {
|
||||||
func dir2Dir(path string, d os.FileInfo, dotu bool, upool Users) (*Dir, error) {
|
func dir2Dir(path string, d os.FileInfo, dotu bool, upool Users) (*Dir, error) {
|
||||||
if r := recover(); r != nil {
|
if r := recover(); r != nil {
|
||||||
fmt.Print("stat failed: ", r)
|
fmt.Print("stat failed: ", r)
|
||||||
return nil, &os.PathError{"dir2Dir", path, nil}
|
return nil, &os.PathError{Op: "dir2Dir", Path: path, Err: nil}
|
||||||
}
|
}
|
||||||
sysif := d.Sys()
|
sysif := d.Sys()
|
||||||
if sysif == nil {
|
if sysif == nil {
|
||||||
return nil, &os.PathError{"dir2Dir: sysif is nil", path, nil}
|
return nil, &os.PathError{Op: "dir2Dir: sysif is nil", Path: path, Err: nil}
|
||||||
}
|
}
|
||||||
sysMode := sysif.(*syscall.Stat_t)
|
sysMode := sysif.(*syscall.Stat_t)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue