From b6c91b9dfdb1e187bc4914803eb120334eb4b97e Mon Sep 17 00:00:00 2001 From: Alexander Cerutti Date: Sat, 30 Mar 2019 18:33:49 +0100 Subject: [PATCH] Little improvement to assignLength function --- src/pass.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pass.js b/src/pass.js index f2fc2b9..e2cf28d 100644 --- a/src/pass.js +++ b/src/pass.js @@ -866,8 +866,8 @@ function generateStringFile(lang) { * @param {Array>} 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 };