Skip to content

Commit 2da0567

Browse files
rsteinkeXMongoDB Bot
authored andcommitted
SERVER-100359: Fix a missed status check (#31986)
GitOrigin-RevId: 8314fd2
1 parent f39ee67 commit 2da0567

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/mongo/bson/json.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1541,7 +1541,9 @@ StatusWith<Date_t> JParse::parseDate() {
15411541
return parseError("Date milliseconds overflow");
15421542
}
15431543
msSinceEpoch = static_cast<long long>(oldDate);
1544-
} else if (!parsedStatus.isOK()) {
1544+
}
1545+
1546+
if (!parsedStatus.isOK()) {
15451547
return parseError("Date expecting integer milliseconds");
15461548
}
15471549
invariant(endptr != _input);

0 commit comments

Comments
 (0)