We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5c10ab commit fcc3e1cCopy full SHA for fcc3e1c
src/fusion/filewalks.nim
@@ -97,9 +97,9 @@ iterator walkPathsOpt*(opt: WalkOpt): PathEntry =
97
if opt.includeRoot or current.depth > 0:
98
yield entry # single `yield` to avoid code bloat
99
100
- let isSort = not opt.sortCmp.isNil # != nil # hits: bug #15595
+ let isSort = opt.sortCmp != nil
101
if (current.kind == pcDir or current.kind == pcLinkToDir and opt.followSymlinks) and not current.epilogue:
102
- if opt.follow.isNil or opt.follow(current):
+ if opt.follow == nil or opt.follow(current):
103
if isSort:
104
dirsLevel.setLen 0
105
if opt.includeEpilogue:
0 commit comments