sebastienrousseau / crypto-service

Found redundant literal in a logical expression JS-W1043
Anti-pattern
Minor
7 months ago7 months old
Logical expression with a literal operand will always evaluate to the same value
176  markdown += `\n`;
177  markdown +=
178    method?.request?.description !== undefined
179      ? `#${method?.request?.description || ""}\n\n`180      : ``;
181  markdown += `### ${method?.request?.method} ${method.name}\n\n`;
182  markdown += `>\`\`\`\n`;
Logical expression with a literal operand will always evaluate to the same value
 20    markdown += `# ${data.info.name}\n\n`;
 21    markdown +=
 22      data.info.description !== undefined
 23        ? `${data.info.description || ""}\n` 24        : ``;
 25    markdown += readItems(data.item);
 26    markdown += `\n`;