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

Fix minor javascript errors found by eslint

    XMLWordPrintable

    Details

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

      eslint --format unix jstests/

      Show
      eslint --format unix jstests/
    • Sprint:
      TIG 10 (02/19/16), TIG 11 (03/11/16)

      Description

      While developing our eslint javascript linting configuration we found the following minor errors in our tests:

      jstests/core/arrayfind8.js:9:9: Expected a conditional expression and instead saw an assignment. [Error/no-cond-assign]
      jstests/repl/repl13.js:4:9: Expected a conditional expression and instead saw an assignment. [Error/no-cond-assign]
      jstests/repl/repl17.js:20:13: Expected a conditional expression and instead saw an assignment. [Error/no-cond-assign]
      jstests/replsets/get_replication_info_helper.js:27:25: Unexpected use of comma operator. [Error/no-sequences]
      jstests/tool/gridfs.js:20:5: unnecessary ".apply()". [Error/no-useless-call]
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: