Skip to content

Commit f470844

Browse files
authored
Update Path.scala
1 parent dc4f00b commit f470844

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

os/src/Path.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ object PathChunk extends PathChunkMacros {
2626
val splitted = strNoTrailingSeps.split('/')
2727
splitted ++ Array.fill(trailingSeparatorsCount)("")
2828
}
29-
private def reduceUps(in:List[String]) = in.foldLeft(List.empty[String]){case (acc,x) =>
29+
private def reduceUps(in:Array[String]): List[String] = in.foldLeft(List.empty[String]){case (acc,x) =>
3030
acc match{
3131
case h :: t if h == ".." => x :: acc
3232
case h :: t if x == ".." => t

0 commit comments

Comments
 (0)