Extra return statement in DBException::toString()

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • None
    • 3
    • 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.

            Assignee:
            Matt Kangas (Inactive)
            Reporter:
            Tad Marshall
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: