Fixed error prone checking etc in codebase

This commit is contained in:
Angelos Chalaris
2018-02-04 17:48:07 +02:00
parent 89f572efbc
commit c6c49ab567
18 changed files with 25 additions and 25 deletions

View File

@ -181,7 +181,7 @@ try {
for (const tag of tags) {
const capitalizedTag = capitalize(tag, true);
// ![advanced](/advanced.svg)
if (capitalizedTag == 'Uncategorized') {
if (capitalizedTag === 'Uncategorized') {
uncategorizedOutput += `---\n ## _${capitalizedTag}_\n`;
for (const taggedSnippet of Object.entries(tagDbData).filter(v => v[1][0] === tag)) {
uncategorizedOutput += `\n${snippets[taggedSnippet[0] + '.md'] +