Minor adjustments to remove warnings

This commit is contained in:
Vitor Pamplona
2026-04-29 17:16:14 -04:00
parent c88183809b
commit df98235d31
2 changed files with 2 additions and 3 deletions
@@ -72,8 +72,8 @@ fun drainOutbound(
val handshakeHasContent = handshakeFrames != null && handshakeState.sendProtection != null
// Build natural-size first.
val initialNatural = if (initialHasContent) buildLongHeaderFromFrames(conn, EncryptionLevel.INITIAL, initialFrames!!, padBytes = 0) else null
val handshakeNatural = if (handshakeHasContent) buildLongHeaderFromFrames(conn, EncryptionLevel.HANDSHAKE, handshakeFrames!!, padBytes = 0) else null
val initialNatural = if (initialHasContent) buildLongHeaderFromFrames(conn, EncryptionLevel.INITIAL, initialFrames, padBytes = 0) else null
val handshakeNatural = if (handshakeHasContent) buildLongHeaderFromFrames(conn, EncryptionLevel.HANDSHAKE, handshakeFrames, padBytes = 0) else null
val firstPass = listOfNotNull(initialNatural, handshakeNatural, applicationPkt)
if (firstPass.isEmpty()) return null
@@ -159,7 +159,6 @@ class InMemoryQuicPipe(
when (peeked.type) {
LongHeaderType.INITIAL -> initialPnSpace
LongHeaderType.HANDSHAKE -> handshakePnSpace
else -> return
}
val parsed =
LongHeaderPacket.parseAndDecrypt(