]> Cypherpunks.ru repositories - goredo.git/blobdiff - sources.go
Do not use legacy os.IsNotExist
[goredo.git] / sources.go
index 659df3a51d9ff76e352dcbc104b62e7d01a8be6b..d53e0e32501b880be35e737cf377602cf9f3ed5e 100644 (file)
@@ -30,7 +30,7 @@ func sourcesWalker(tgts []string) ([]string, error) {
                cwd, f := path.Split(path.Join(Cwd, tgt))
                fdDep, err := os.Open(path.Join(cwd, RedoDir, f+DepSuffix))
                if err != nil {
-                       if os.IsNotExist(err) {
+                       if errors.Is(err, fs.ErrNotExist) {
                                continue
                        }
                        return nil, ErrLine(err)