Coverity analysis defect 134385: Redundant test

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Gone away
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • ALL
    • QO 2022-12-26, QO 2023-01-09
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Redundant test

      By the time the program execution reaches the test of this condition there is only one possible outcome for the test. The code at the destination of this branch is not dead, either because this condition is always true or because there is at least one other branch that reaches it. Test always evaluates the same
      /src/mongo/db/pipeline/visitors/document_source_walker.cpp:98: DEADCODE 134385 At condition "this->visitHelper(ds)", the value of "this->visitHelper(ds)" must be equal to 0.
      /src/mongo/db/pipeline/visitors/document_source_walker.cpp:97: DEADCODE 134385 The condition "this->visitHelper(ds)" cannot be true.

            Assignee:
            Ben Shteinfeld
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: