There was an error while loading. Please reload this page.
1 parent dc4f00b commit f470844Copy full SHA for f470844
os/src/Path.scala
@@ -26,7 +26,7 @@ object PathChunk extends PathChunkMacros {
26
val splitted = strNoTrailingSeps.split('/')
27
splitted ++ Array.fill(trailingSeparatorsCount)("")
28
}
29
- private def reduceUps(in:List[String]) = in.foldLeft(List.empty[String]){case (acc,x) =>
+ private def reduceUps(in:Array[String]): List[String] = in.foldLeft(List.empty[String]){case (acc,x) =>
30
acc match{
31
case h :: t if h == ".." => x :: acc
32
case h :: t if x == ".." => t
0 commit comments