From 040229b31653a1464e388b39a978759d98b85ab3 Mon Sep 17 00:00:00 2001 From: Steven Powell Date: Tue, 20 Feb 2024 13:42:45 -0800 Subject: [PATCH] Fix go vet issues --- third_party/go9p/ufs_darwin.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/third_party/go9p/ufs_darwin.go b/third_party/go9p/ufs_darwin.go index da9a10fae2..42b1c2c252 100644 --- a/third_party/go9p/ufs_darwin.go +++ b/third_party/go9p/ufs_darwin.go @@ -44,11 +44,11 @@ func dir2Qid(d os.FileInfo) *Qid { func dir2Dir(path string, d os.FileInfo, dotu bool, upool Users) (*Dir, error) { if r := recover(); r != nil { 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() 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)