Skip to content

Commit ff0d1fd

Browse files
committed
refactor: reflect review point
1 parent 8a42143 commit ff0d1fd

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
@@ -67,7 +67,7 @@ class Directory(jpath: JPath) extends Path(jpath) {
6767
* until it runs out of contents.
6868
*/
6969
def deepList(depth: Int = -1): Iterator[Path] =
70-
if (depth < 0) list ++ (dirs flatMap (_ deepList depth))
70+
if (depth < 0) list ++ dirs.flatMap(_.deepList(depth))
7171
else if (depth == 0) Iterator.empty
7272
else list ++ (dirs flatMap (_ deepList (depth - 1)))
7373
}

0 commit comments

Comments
 (0)