Little improvement to assignLength function

This commit is contained in:
Alexander Cerutti
2019-03-30 18:33:49 +01:00
parent 33ca24d28d
commit b6c91b9dfd

View File

@@ -866,8 +866,8 @@ function generateStringFile(lang) {
* @param {Array<Object<string, any>>} source - the main sources of properties
*/
function assignLength(value, ...sources) {
return Object.assign({ length: value }, ...sources);
function assignLength(length, ...sources) {
return Object.assign({ length }, ...sources);
}
module.exports = { Pass };