diff --git a/apps/nunjucks-filters/src/customFilters.js b/apps/nunjucks-filters/src/customFilters.js index 31b2a4c55..21aa46b8d 100644 --- a/apps/nunjucks-filters/src/customFilters.js +++ b/apps/nunjucks-filters/src/customFilters.js @@ -150,10 +150,11 @@ function docline(field, fieldName, scopePropName) { const getPName = (pName) => pName ? `${pName}.` : ''; const buildLineCore = (type, def, pName, fName) => { - let paramName = `${pName}${fName}`; - let defaultValue = def !== undefined ? `=${def}` : ''; + const paramName = `${pName}${fName}`; + const defaultValue = def !== undefined ? `=${def}` : ''; return `* @param {${type}} ${paramName}${defaultValue}`; -}; + }; + const buildLine = (f, fName, pName) => { const type = getType(f);