summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeert Bosch <geert@mongodb.com>2016-04-27 12:23:28 -0400
committerGeert Bosch <geert@mongodb.com>2016-04-27 14:40:53 -0400
commitfe35b1572b89289c2005a162ee859999ade5bcae (patch)
tree23a890274b142fc1e772b060907e33b55dc5d6e9
parent21c359f605f773f55d9f494caa9a72273b49139f (diff)
downloadmongo-fe35b1572b89289c2005a162ee859999ade5bcae.tar.gz
SERVER-23894 Coverity analysis defect 98850: Logically dead code
-rw-r--r--src/mongo/db/storage/key_string.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/storage/key_string.cpp b/src/mongo/db/storage/key_string.cpp
index 3c5fafa3ec2..7ce65ac705a 100644
--- a/src/mongo/db/storage/key_string.cpp
+++ b/src/mongo/db/storage/key_string.cpp
@@ -705,8 +705,7 @@ void KeyString::_appendNumberDecimal(const Decimal128 dec, bool invert) {
if (!has8bytes) {
// A Fraction byte follows, but the leading 7 bytes already encode 53 bits of the
// coefficient, so just store the DCM.
- uint8_t dcm = hasFraction ? kDCMHasContinuationLargerThanDoubleRoundedUpTo15Digits
- : kDCMEqualToDouble;
+ uint8_t dcm = kDCMHasContinuationLargerThanDoubleRoundedUpTo15Digits;
_append(dcm, isNegative ? !invert : invert);
}