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:
parent
8bd9109fb8
commit
4c72fc26b1
|
|
@ -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\\("
|
||||
|
|
|
|||
Loading…
Reference in New Issue