Skip to content

Commit fcc3e1c

Browse files
committed
fixup
1 parent e5c10ab commit fcc3e1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fusion/filewalks.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ iterator walkPathsOpt*(opt: WalkOpt): PathEntry =
9797
if opt.includeRoot or current.depth > 0:
9898
yield entry # single `yield` to avoid code bloat
9999

100-
let isSort = not opt.sortCmp.isNil # != nil # hits: bug #15595
100+
let isSort = opt.sortCmp != nil
101101
if (current.kind == pcDir or current.kind == pcLinkToDir and opt.followSymlinks) and not current.epilogue:
102-
if opt.follow.isNil or opt.follow(current):
102+
if opt.follow == nil or opt.follow(current):
103103
if isSort:
104104
dirsLevel.setLen 0
105105
if opt.includeEpilogue:

0 commit comments

Comments
 (0)