cleanup return in SentPacketHistory

This commit is contained in:
Stephen Birarda 2015-07-09 13:06:34 -07:00
parent 14b73ae00f
commit 6f2e9f4899

View file

@ -48,10 +48,6 @@ const NLPacket* SentPacketHistory::getPacket(uint16_t sequenceNumber) const {
if (seqDiff < 0) {
seqDiff += UINT16_RANGE;
}
auto packet = _sentPackets.get(seqDiff);
if (packet) {
return packet->get();
} else {
return nullptr;
}
return _sentPackets.get(seqDiff)->get();
}