Fix padded-blocks eslint rule in ES5 files

[MAILPOET-1144]
This commit is contained in:
Pavel Dohnal
2017-11-30 09:12:19 +00:00
parent 0e08e58288
commit 8ea4a219e2
33 changed files with 0 additions and 47 deletions

View File

@ -80,7 +80,6 @@ define(
: val;
cur = cur[key];
}
} else {
// Simple key, even simpler rules, since only scalars and shallow
// arrays are allowed.
@ -88,12 +87,10 @@ define(
if ($.isArray(obj[key])) {
// val is already an array, so push on the next value.
obj[key].push(val);
} else if (obj[key] !== undefined) {
// val isn't an array, but since a second value has been specified,
// convert val into an array.
obj[key] = [obj[key], val];
} else {
// val is a scalar.
obj[key] = val;