Skip to content

Commit

Permalink
fix: index not found, should append instead (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
y3owk1n authored Dec 7, 2024
1 parent 97a26d8 commit 3f108ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/directories.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ func GetDirectories(directory string) ([]Directory, error) {
}

directories := []Directory{}
for i, entry := range entries {
for _, entry := range entries {
if entry.IsDir() {
directories[i] = Directory{
directories = append(directories, Directory{
Name: entry.Name(),
Value: entry.Name(),
}
})
}
}
return directories, nil
Expand Down

0 comments on commit 3f108ee

Please sign in to comment.