chore: fix ruleguard xerrors rules (#8967)

This commit is contained in:
Dean Sheather
2023-08-08 05:32:41 -07:00
committed by GitHub
parent 31b7de6a3e
commit b2a84462ab
2 changed files with 7 additions and 3 deletions

View File

@ -240,7 +240,7 @@ func (*RootCmd) statDisk(s *clistat.Statter) *clibase.Cmd {
ds, err := s.Disk(pfx, pathArg)
if err != nil {
if os.IsNotExist(err) {
// fmt.Errorf produces a more concise error.
//nolint:gocritic // fmt.Errorf produces a more concise error.
return fmt.Errorf("not found: %q", pathArg)
}
return err