linting
parent
9e18e68ce7
commit
4d1aa5fe31
|
@ -81,13 +81,13 @@ function coerceToTypes(optionCoerceTypes, dataTypes) {
|
|||
for (var i=0; i<dataTypes.length; i++) {
|
||||
var t = dataTypes[i];
|
||||
if (COERCE_TO_TYPES[t]) types[types.length] = t;
|
||||
else if (optionCoerceTypes === 'array' && t === 'array') types[types.length] = t;
|
||||
else if (optionCoerceTypes === 'array' && t === 'array') types[types.length] = t;
|
||||
}
|
||||
if (types.length) return types;
|
||||
} else if (COERCE_TO_TYPES[dataTypes]) {
|
||||
return [dataTypes];
|
||||
} else if (optionCoerceTypes === 'array' && dataTypes === 'array') {
|
||||
return ['array'];
|
||||
return ['array'];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue