eslint: Enable space-infix-ops rule.

More about rule at  https://eslint.org/docs/rules/space-infix-ops
This commit is contained in:
Shubham Dhama
2018-06-05 00:43:07 +05:30
parent c6738889a9
commit cc03f9fb8f
46 changed files with 120 additions and 120 deletions

View File

@@ -30,7 +30,7 @@ function get_or_set(fieldname, keep_leading_whitespace) {
// because the DOM element might not exist yet when get_or_set
// is called.
return function (newval) {
var elem = $('#'+fieldname);
var elem = $('#' + fieldname);
var oldval = elem.val();
if (newval !== undefined) {
elem.val(newval);