Skip to content

Commit 040229b

Browse files
committed
Fix go vet issues
1 parent 04a79bd commit 040229b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

third_party/go9p/ufs_darwin.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ func dir2Qid(d os.FileInfo) *Qid {
4444
func dir2Dir(path string, d os.FileInfo, dotu bool, upool Users) (*Dir, error) {
4545
if r := recover(); r != nil {
4646
fmt.Print("stat failed: ", r)
47-
return nil, &os.PathError{"dir2Dir", path, nil}
47+
return nil, &os.PathError{Op: "dir2Dir", Path: path, Err: nil}
4848
}
4949
sysif := d.Sys()
5050
if sysif == nil {
51-
return nil, &os.PathError{"dir2Dir: sysif is nil", path, nil}
51+
return nil, &os.PathError{Op: "dir2Dir: sysif is nil", Path: path, Err: nil}
5252
}
5353
sysMode := sysif.(*syscall.Stat_t)
5454

0 commit comments

Comments
 (0)