Skip to content

Commit 700c5dd

Browse files
committed
refact: clear declaration
1 parent de33bb5 commit 700c5dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/io/Directory.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class Directory(jpath: JPath) extends Path(jpath) {
5959
def files: Iterator[File] = list collect { case x: File => x }
6060

6161
override def walkFilter(cond: Path => Boolean): Iterator[Path] =
62-
list filter cond flatMap (_ walkFilter cond)
62+
list.filter(cond).flatMap(_.walkFilter(cond))
6363

6464
def deepFiles: Iterator[File] = Path.onlyFiles(deepList())
6565

0 commit comments

Comments
 (0)