mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
refactor: enable errorlint and refactor code (#14110)
* refactor: enable errorlint and refactor code * revert * revert * add bazel * gofmt * gofmt * gofmt * gofmt * gci * lint --------- Co-authored-by: Radosław Kapka <rkapka@wp.pl>
This commit is contained in:
@@ -198,7 +198,7 @@ func RecursiveFileFind(filename, dir string) (bool, string, error) {
|
||||
// no errors or file found
|
||||
return nil
|
||||
})
|
||||
if err != nil && err != errStopWalk {
|
||||
if err != nil && !errors.Is(err, errStopWalk) {
|
||||
return false, "", err
|
||||
}
|
||||
return found, fpath, nil
|
||||
@@ -231,7 +231,7 @@ func RecursiveDirFind(dirname, dir string) (bool, string, error) {
|
||||
return nil
|
||||
})
|
||||
|
||||
if err != nil && err != errStopWalk {
|
||||
if err != nil && !errors.Is(err, errStopWalk) {
|
||||
return false, "", errors.Wrapf(err, "error walking directory %s", dir)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user