Skip to content

Commit

Permalink
core: a bit of simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
jrudolph committed Aug 14, 2019
1 parent 9fd6b0b commit 0cabc8f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -70,7 +70,7 @@ private[rendering] object RenderSupport {
skipEntity: Boolean = false): Source[ByteString, Any] = {
val messageStart = Source.single(header)
val messageBytes =
if (!skipEntity) (messageStart ++ entityBytes).mapMaterializedValue(_ => ())
if (!skipEntity) messageStart ++ entityBytes
else CancelSecond(messageStart, entityBytes)
messageBytes
}
Expand Down

0 comments on commit 0cabc8f

Please sign in to comment.