[SERVER-22850] Clean up additional javascript issues found by eslint Created: 25/Feb/16  Updated: 19/Nov/16  Resolved: 25/Feb/16

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: 3.3.2
Fix Version/s: 3.2.4, 3.3.3

Type: Bug Priority: Major - P3
Reporter: Michael Grundy Assignee: Michael Grundy
Resolution: Done Votes: 0
Labels: test-only
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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

eslint --format unix jstests/ src/mongo/

Sprint: TIG 11 (03/11/16)
Participants:

 Description   

The following issues were found that will cause problems with clang-format:

jstests/core/numberlong.js:38:7: Missing semicolon. [Error/semi]
jstests/core/numberlong.js:65:7: Missing semicolon. [Error/semi]
jstests/noPassthrough/js_protection.js:60:67: Missing semicolon. [Error/semi]
jstests/readonly/lib/read_only_test.js:67:2: Unnecessary semicolon. [Error/no-extra-semi]
jstests/readonly/lib/read_only_test.js:85:2: Unnecessary semicolon. [Error/no-extra-semi]

Additionally the following issues were missed in the last clean up pass:

/jstests/concurrency/fsm_libs/fsm.js:34:32: Arrow function should not return assignment. [Error/no-return-assign]
src/mongo/shell/servers.js:857:17: unnecessary '.apply()'. [Error/no-useless-call]



 Comments   
Comment by Githook User [ 25/Feb/16 ]

Author:

{u'username': u'mgrundy', u'name': u'Mike Grundy', u'email': u'michael.grundy@10gen.com'}

Message: SERVER-22850 Clean up additional javascript issues found by eslint

(cherry picked from commit eada48bf3c3377878c334389f8e68bcddd25bd2a)
Branch: v3.2
https://github.com/mongodb/mongo/commit/28f22271a54fc5e6af05b42b3f88c95c5407c169

Comment by Githook User [ 25/Feb/16 ]

Author:

{u'username': u'mgrundy', u'name': u'Mike Grundy', u'email': u'michael.grundy@10gen.com'}

Message: SERVER-22850 Clean up additional javascript issues found by eslint
Branch: master
https://github.com/mongodb/mongo/commit/eada48bf3c3377878c334389f8e68bcddd25bd2a

Generated at Thu Feb 08 04:01:36 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.