Fix eslint rules

[MAILPOET-1348]
This commit is contained in:
Pavel Dohnal
2018-04-18 10:39:48 +01:00
parent 9fce8aa126
commit 5fb57b13e4

View File

@ -57,10 +57,13 @@ define(
// Coerce values.
if (coerce) {
val = val && !isNaN(val) ? +val // number
: val === 'undefined' ? undefined // undefined
: coerceTypes[val] !== undefined ? coerceTypes[val] // true, false, null
: val; // string
if (val && !isNaN(val)) { // number
val = +val;
} else if (val === 'undefined') { // undefined
val = undefined;
} else if (coerceTypes[val] !== undefined) { // true, false, null
val = coerceTypes[val];
}
}
if (keysLast) {