Skip to content

Commit

Permalink
quic: remove redundant cast
Browse files Browse the repository at this point in the history
PR-URL: #34086
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: David Carlier <[email protected]>
  • Loading branch information
gengjiawen authored and jasnell committed Jun 30, 2020
1 parent b613933 commit 68634d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/quic/node_quic_session.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2896,8 +2896,8 @@ int QuicSession::OnReceiveCryptoData(
if (UNLIKELY(session->is_destroyed()))
return NGTCP2_ERR_CALLBACK_FAILURE;
QuicSession::Ngtcp2CallbackScope callback_scope(session);
return static_cast<int>(
session->crypto_context()->Receive(crypto_level, offset, data, datalen));
return session->crypto_context()->Receive(
crypto_level, offset, data, datalen);
}

// Called by ngtcp2 for both client and server connections
Expand Down

0 comments on commit 68634d2

Please sign in to comment.