Skip to content

Commit

Permalink
Hyper efficient listing
Browse files Browse the repository at this point in the history
  • Loading branch information
quackduck committed Feb 16, 2021
1 parent d92ae31 commit b8eb472
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rem.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,11 @@ func main() {

func listFilesInTrash() []string {
m := getLogFile()
s := make([]string, 0, 10)
s := make([]string, len(m))
i := 0
for key := range m {
s = append(s, key)
s[i] = key
i++
}
return s
}
Expand Down

0 comments on commit b8eb472

Please sign in to comment.