From 3a22d3a91eb7451cbb3ca6ae18ecf03aff5a2dc3 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Sat, 15 Sep 2018 12:44:07 +0300 Subject: [PATCH] Codacy update for build.js --- scripts/build.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build.js b/scripts/build.js index 686b742b8..95467df09 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -206,12 +206,12 @@ try { snippet.slice(snippet.lastIndexOf('```')) ); - output += snippet + '\n
' + misc.link('⬆ Back to top', misc.anchor('Table of Contents')) + '\n\n'; + output += `${snippet}\n
${misc.link('⬆ Back to top', misc.anchor('Table of Contents'))}\n\n`; } } // Add the ending static part - output += `\n${endPart + '\n'}`; + output += `\n${endPart}\n`; // Write to the README file fs.writeFileSync('README.md', output); } catch (err) {