Skip to content

Commit

Permalink
additional comments WithExt
Browse files Browse the repository at this point in the history
  • Loading branch information
redwrasse committed Mar 9, 2024
1 parent e5a5fd0 commit 99535f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/pkg/fileutil/purge.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ func purgeFile(lg *zap.Logger, dirname string, suffix string, max uint, interval
// fnames is a slice of filename strings
// note ReadDir reads files already in sorted order,
// so could filter for suffixes and not have to sort again (maybe?)
// also ReadDir already has helper WithExt method could use?
fnames, err := ReadDir(dirname)
if err != nil {
errC <- err
Expand Down

0 comments on commit 99535f4

Please sign in to comment.