-
Type:
Bug
-
Resolution: Done
-
Priority:
Trivial - P5
-
Affects Version/s: None
-
Component/s: Internal Code
-
Fully Compatible
-
ALL
-
None
-
0
-
None
-
None
-
None
-
None
-
None
-
None
The definition of DBException::toString() at line 57 in src/mongo/util/assert_util.cpp contains a redundant return statement:
string DBException::toString() const { stringstream ss; ss << getCode() << " " << what(); return ss.str(); return ss.str(); }
This would have been more obvious if the routine didn't have three statements on one line.