Skip to content

Commit

Permalink
chore(): fix slice initialization error (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiaoxizhan authored Dec 27, 2024
1 parent c331f7b commit 9ab90c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func ReadFilenames(dir string) []string {
}
// Create array of names of files which are stored in dir
// used later to set valid name for received files
filenames := make([]string, len(files))
filenames := make([]string, 0, len(files))
for _, fi := range files {
filenames = append(filenames, fi.Name())
}
Expand Down

0 comments on commit 9ab90c4

Please sign in to comment.