Skip to content

Commit f7a2848

Browse files
committed
Scalafmt
1 parent 6559aa0 commit f7a2848

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

io/src/main/scala/fs2/io/tls/TLSEngine.scala

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,12 @@ private[tls] object TLSEngine {
130130
// Check if the initial handshake has finished -- if so, read; otherwise, handshake and then read
131131
dequeueUnwrap(maxBytes).flatMap { out =>
132132
if (out.isEmpty)
133-
initialHandshakeDone.ifM(read1(maxBytes, timeout),
133+
initialHandshakeDone.ifM(
134+
read1(maxBytes, timeout),
134135
write(Chunk.empty, None) >> dequeueUnwrap(maxBytes).flatMap { out =>
135136
if (out.isEmpty) read1(maxBytes, timeout) else Applicative[F].pure(out)
136-
})
137+
}
138+
)
137139
else Applicative[F].pure(out)
138140
}
139141

@@ -209,7 +211,10 @@ private[tls] object TLSEngine {
209211
else
210212
binding.read(engine.getSession.getPacketBufferSize, timeout).flatMap {
211213
case Some(c) => unwrapBuffer.input(c) >> unwrapHandshake(timeout)
212-
case None => unwrapBuffer.inputRemains.flatMap(x => if (x > 0) Applicative[F].unit else stopUnwrap)
214+
case None =>
215+
unwrapBuffer.inputRemains.flatMap(x =>
216+
if (x > 0) Applicative[F].unit else stopUnwrap
217+
)
213218
}
214219
}
215220
case SSLEngineResult.HandshakeStatus.NEED_UNWRAP_AGAIN =>

0 commit comments

Comments
 (0)