@cryptotaxi247 / kubo / commits / ca4a3ed96

fix: assets: correctly use the argument err in the WalkDirFunc Hashing Files

Jorropo committed Apr 12, 2022 at 02:25 UTC ca4a3ed96167d2ea2f46a4e5c1235ae4e7b65d31
1 file changed +4
assets/assets.go
+4
@@ -39,6 +39,10 @@ var initDocPaths = []string{
39 func init() {
40 sum := xxhash.New()
41 err := fs.WalkDir(Asset, ".", func(path string, d fs.DirEntry, err error) error {
42 + if err != nil {
43 + return err
44 + }
45 +
46 if d.IsDir() {
47 return nil
48 }