Skip to content

Commit

Permalink
fix: assets: correctly use the argument err in the WalkDirFunc Hashin…
Browse files Browse the repository at this point in the history
…g Files
  • Loading branch information
Jorropo committed Apr 12, 2022
1 parent 70398d2 commit ca4a3ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/assets.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ var initDocPaths = []string{
func init() {
sum := xxhash.New()
err := fs.WalkDir(Asset, ".", func(path string, d fs.DirEntry, err error) error {
if err != nil {
return err
}

if d.IsDir() {
return nil
}
Expand Down

0 comments on commit ca4a3ed

Please sign in to comment.