Skip to content

Commit 973b4fc

Browse files
committed
fix warning
1 parent 3dee2dd commit 973b4fc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Sources/NIOHTTP3/HTTP3ConnectionHandler.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,7 @@ public final class HTTP3ConnectionHandler<StreamCreator: QUICStreamCreator & Sen
359359
context.fireErrorCaught(error)
360360
return
361361
}
362-
// RFC 9114 § 8: Receipt of an unknown error code MUST be treated as equivalent to H3_NO_ERROR.
363-
let h3Code = HTTP3ErrorCode(rawValue: quicError.code) ?? .noError
362+
let h3Code = HTTP3ErrorCode(rawValue: quicError.code)
364363
self.logger.debug(
365364
"HTTP3ConnectionHandler caught error",
366365
metadata: [LoggingKeys.error: "\(h3Code)", LoggingKeys.reason: "\(quicError.reason)"]

0 commit comments

Comments
 (0)