1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-11-09 10:00:57 +03:00

Replace folly::Optional::hasValue() by has_value()

Differential Revision: D19882830

fbshipit-source-id: 031217f9890351022bc8d171f0ccd7e045dd6972
This commit is contained in:
TJ Yin
2020-02-26 08:37:00 -08:00
committed by Facebook Github Bot
parent 2c04d99cda
commit a396f62335
44 changed files with 143 additions and 140 deletions

View File

@@ -346,7 +346,7 @@ ReadStreamFrame decodeStreamFrame(
}
}
Buf data;
if (dataLength.hasValue()) {
if (dataLength.has_value()) {
if (cursor.totalLength() < dataLength->first) {
throw QuicTransportException(
"Length mismatch",