This commit is contained in:
Barış Soner Uşaklı
2018-02-19 11:45:06 -05:00
parent e36657d48c
commit c707e98423

View File

@@ -237,9 +237,6 @@ middleware.templatesOnDemand = function (req, res, next) {
fs.readFile(tplPath, 'utf8', cb);
},
function (source, cb) {
if (!source) {
return cb(new Error('[[error:templatesOnDemand.source-template-empty, ' + tplPath + ']]'));
}
Benchpress.precompile({
source: source,
minify: global.env !== 'development',