mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 02:02:12 +08:00
Chore: Enable errorlint linter (#29227)
* Enable errorlint linter * Handle wrapped errors Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com> Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>
This commit is contained in:
@ -50,7 +50,7 @@ func walk(path string, info os.FileInfo, resolvedPath string, symlinkPathsFollow
|
||||
}
|
||||
err := walkFn(resolvedPath, info, nil)
|
||||
if err != nil {
|
||||
if info.IsDir() && err == ErrWalkSkipDir {
|
||||
if info.IsDir() && errors.Is(err, ErrWalkSkipDir) {
|
||||
err = nil
|
||||
}
|
||||
return err
|
||||
|
Reference in New Issue
Block a user