Skip to content

Commit 88da867

Browse files
author
Ankit Kumar
committed
Applied ScalafmtAll
1 parent 942f6d8 commit 88da867

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

io/shared/src/main/scala/fs2/io/file/Files.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -530,12 +530,12 @@ object Files extends FilesCompanionPlatform with FilesLowPriority {
530530
})
531531

532532
def writeAll(
533-
path: Path,
534-
flags: Flags
535-
): Pipe[F, Byte, Nothing] =
533+
path: Path,
534+
flags: Flags
535+
): Pipe[F, Byte, Nothing] =
536536
in =>
537537
in.pull.stepLeg.flatMap {
538-
case None => Pull.done
538+
case None => Pull.done
539539
case Some(leg) =>
540540
Stream
541541
.resource(writeCursor(path, flags))

io/shared/src/test/scala/fs2/io/file/FilesSuite.scala

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ class FilesSuite extends Fs2Suite with BaseFileSuite {
113113
val src = Stream("Hello", " world!").covary[IO].through(text.utf8.encode)
114114
src.through(Files[IO].writeAll(path)) ++
115115
src.through(Files[IO].writeAll(path, Flags.Append)) ++ Files[IO]
116-
.readAll(path)
117-
.through(text.utf8.decode)
116+
.readAll(path)
117+
.through(text.utf8.decode)
118118
}
119119
.compile
120120
.foldMonoid
@@ -165,8 +165,7 @@ class FilesSuite extends Fs2Suite with BaseFileSuite {
165165
}
166166
.compile
167167
.foldMonoid
168-
.assertEquals(
169-
"""|foo
168+
.assertEquals("""|foo
170169
|bar
171170
|""".stripMargin)
172171
}

0 commit comments

Comments
 (0)