Skip to content

Commit

Permalink
Merge pull request kubernetes#18220 from spowelljr/fixGoVet
Browse files Browse the repository at this point in the history
Fix go vet issues
  • Loading branch information
medyagh authored Feb 21, 2024
2 parents 3a00fd2 + 040229b commit 7041fb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions third_party/go9p/ufs_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 7041fb9

Please sign in to comment.