Skip to content

Commit

Permalink
improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
alessio committed Jan 22, 2024
1 parent 57af391 commit 3d54ccc
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions dirlist/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,7 @@ var filterEmptyStrings = func(s string) (string, bool) {
return s, false
}

// I removed the following because filepath.Clean()
// never returns "".
//
// clean := filepath.Clean(s)
// if clean == "" {
// return clean, false
// }

// It'd pointless to check filepath.Clean()'s return
// value's nil-ness as it would never be "".
return filepath.Clean(s), true
}

0 comments on commit 3d54ccc

Please sign in to comment.