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 authored and xrazis committed Apr 14, 2022
1 parent c7b93d7 commit 16019d0
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 16019d0

Please sign in to comment.