mirror of
https://github.com/coder/coder.git
synced 2025-07-21 01:28:49 +00:00
chore: fix ruleguard xerrors rules (#8967)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user