Skip to content

Commit

Permalink
build_tree: fixed nilptr panic when there's no directories to scan
Browse files Browse the repository at this point in the history
  • Loading branch information
utrack committed Sep 10, 2020
1 parent 7920c42 commit 459942e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/build_tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ func BuildTree(ctx context.Context, c Config) error {
}

filepath.Walk(absPath, func(p string, info os.FileInfo, err error) error {
if err != nil {
return err
}
if info.IsDir() {
return nil
}
Expand Down

0 comments on commit 459942e

Please sign in to comment.