Fix minor javascript errors found by eslint

XMLWordPrintableJSON

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

      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 (Inactive)
              Reporter:
              Michael Grundy (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: