Skip to content

Commit 12e9ef3

Browse files
author
Alexander V. Brezgin
committed
Remove repeated condition
isDouble() contains isIntegral()
1 parent 77632b2 commit 12e9ef3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib_json/json_value.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1356,7 +1356,7 @@ bool Value::isIntegral() const {
13561356

13571357
bool Value::isDouble() const { return type_ == realValue || isIntegral(); }
13581358

1359-
bool Value::isNumeric() const { return isIntegral() || isDouble(); }
1359+
bool Value::isNumeric() const { return isDouble(); }
13601360

13611361
bool Value::isString() const { return type_ == stringValue; }
13621362

0 commit comments

Comments
 (0)