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

assert.contains() has unreachable code after return

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Completed:
    • Steps To Reproduce:
      Hide

      Found with eslint

      Show
      Found with eslint
    • Sprint:
      TIG 11 (03/11/16)
    • Linked BF Score:
      0

      Description

      eslint found the following error:

      src/mongo/shell/assert.js:135:13: Found unexpected statement after a return. [Error/no-unreachable]src/mongo/shell/servers.js:845:13: unnecessary ".apply()". [Error/no-useless-call]
      

      The code should be modified to either reject anything that isn't an array or checks objects & scalars appropriately.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: