sebastienrousseau / crypto-service

Useless template literal found JS-R1004
Anti-pattern
Minor
7 months ago7 months old
Template string can be replaced with regular string literal
188  markdown += readAuthorization(method?.request?.auth);
189  markdown += readResponse(method?.response);
190  markdown += `\n`;
191  markdown += `![divider][divider]\n`;192
193  return markdown;
194}
Template string can be replaced with regular string literal
187  markdown += readQueryParams(method?.request?.url);
188  markdown += readAuthorization(method?.request?.auth);
189  markdown += readResponse(method?.response);
190  markdown += `\n`;191  markdown += `![divider][divider]\n`;
192
193  return markdown;
Template string can be replaced with regular string literal
181  markdown += `### ${method?.request?.method} ${method.name}\n\n`;
182  markdown += `>\`\`\`\n`;
183  markdown += `>${method?.request?.url}\n`;
184  markdown += `>\`\`\`\n`;185  markdown += readRequest(method?.request);
186  markdown += readFormDataBody(method?.request?.body);
187  markdown += readQueryParams(method?.request?.url);
Template string can be replaced with regular string literal
179      ? `#${method?.request?.description || ""}\n\n`
180      : ``;
181  markdown += `### ${method?.request?.method} ${method.name}\n\n`;
182  markdown += `>\`\`\`\n`;183  markdown += `>${method?.request?.url}\n`;
184  markdown += `>\`\`\`\n`;
185  markdown += readRequest(method?.request);
Template string can be replaced with regular string literal
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`;
183  markdown += `>${method?.request?.url}\n`;