Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
ddddddO committed Sep 30, 2023
1 parent a4cae0e commit 74d3be0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/counter.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ func newCounter() *counter {

func (c *counter) count(path string) {
dir, file := filepath.Split(path)
splited := strings.Split(dir, "/")
if len(dir) > 0 {
splited := strings.Split(dir, "/")
for i := range splited {
c.dirs[filepath.Join(splited[:i+1]...)] = struct{}{}
}
Expand Down

0 comments on commit 74d3be0

Please sign in to comment.