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

Fix minor javascript errors found by eslint

    • Fully Compatible
    • ALL
    • Hide
      eslint --format unix jstests/
      Show
      eslint --format unix jstests/
    • TIG 10 (02/19/16), TIG 11 (03/11/16)

      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]
      

            Assignee:
            michael.grundy Michael Grundy
            Reporter:
            michael.grundy Michael Grundy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: