Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-8477

Extra return statement in DBException::toString()

    • Fully Compatible
    • ALL

      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 Matt Kangas
            Reporter:
            tad Tad Marshall
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: