Skip to content

Commit 2941d3b

Browse files
author
Matteo Di Pirro
committed
SCALA-406 Fix os-lib application
1 parent ed3c420 commit 2941d3b

File tree

1 file changed

+1
-1
lines changed
  • scala-libraries-3/src/main/scala/com/baeldung/scala/os

1 file changed

+1
-1
lines changed

scala-libraries-3/src/main/scala/com/baeldung/scala/os/OsApp.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ object OsApp extends App {
1010

1111
os.proc("ls", "-l", "dir").call(check = false)
1212

13-
val lines = os.read(os.pwd / "LICENSE").lines.count()
13+
val lines = os.read(os.pwd / "LICENSE").linesIterator.size
1414
}

0 commit comments

Comments
 (0)