Skip to content

Commit

Permalink
using nested template literals
Browse files Browse the repository at this point in the history
  • Loading branch information
thebedigupta committed Oct 11, 2024
1 parent 6f60d50 commit dd71723
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/nunjucks-filters/src/customFilters.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function docline(field, fieldName, scopePropName) {
const getPName = (pName) => pName ? `${pName}.` : '';

const buildLineCore = (type, def, pName, fName) => {
return `* @param {${type}} ${pName}${fName}${def !== undefined ? `=${def}` : ''}`;
return `* @param {${type}} ${pName}${fName}${def !== undefined ? '=' + def : ''}`;
};

const buildLine = (f, fName, pName) => {
Expand Down

0 comments on commit dd71723

Please sign in to comment.