mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 15:25:20 +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
|
||||
*/
|
||||
|
||||
function assignLength(value, ...sources) {
|
||||
return Object.assign({ length: value }, ...sources);
|
||||
function assignLength(length, ...sources) {
|
||||
return Object.assign({ length }, ...sources);
|
||||
}
|
||||
|
||||
module.exports = { Pass };
|
||||
|
||||
Reference in New Issue
Block a user