fix os.IsNotExist() CI check

The os.IsNotExist() function comment mentions that new code should use
`errors.Is(err, fs.ErrNotExist)` instead.

The check was already in CI but used the wrong function name (extra s.)

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger 2023-03-27 16:56:50 +02:00
parent 8bd9109fb8
commit 4c72fc26b1
No known key found for this signature in database
GPG Key ID: EB145DD938A3CAF2
1 changed files with 2 additions and 2 deletions

View File

@ -59,5 +59,5 @@ check_diffs \
"^(\\+[^#]+io/ioutil)|(\\+.+ioutil\\..+)"
check_diffs \
"use of os.IsNotExists(err) vs recommended errors.Is(err, os.ErrNotExist)" \
"^\\+[^#]*os\\.IsNotExists\\("
"use of os.IsNotExist(err) vs recommended errors.Is(err, fs.ErrNotExist)" \
"^\\+[^#]*os\\.IsNotExist\\("