mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 19:25:23 +00:00
Little improvement to assignLength function
This commit is contained in:
@@ -866,8 +866,8 @@ function generateStringFile(lang) {
|
|||||||
* @param {Array<Object<string, any>>} source - the main sources of properties
|
* @param {Array<Object<string, any>>} source - the main sources of properties
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function assignLength(value, ...sources) {
|
function assignLength(length, ...sources) {
|
||||||
return Object.assign({ length: value }, ...sources);
|
return Object.assign({ length }, ...sources);
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = { Pass };
|
module.exports = { Pass };
|
||||||
|
|||||||
Reference in New Issue
Block a user