refactor: remove redundant initialization

This commit is contained in:
Xymorot 2019-11-27 16:27:45 +01:00
parent 237ae2079c
commit 5d84985551
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ function compile(isDevMode = false) {
const templatePath = path.resolve(__dirname, 'index.html.handlebars');
const template = fs.readFileSync(templatePath).toString();
const compiled = handlebars.compile(template);
let result = '';
let result;
if (isDevMode) {
result = compiled(data.dev);
} else {