Skip to content

Commit

Permalink
"let" not supported?
Browse files Browse the repository at this point in the history
  • Loading branch information
noel-schenk committed Sep 19, 2019
1 parent 394d864 commit 6022dbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/consolidate.js
Original file line number Diff line number Diff line change
Expand Up @@ -1774,8 +1774,8 @@ exports.twing.render = function(str, options, cb) {
return promisify(cb, function(cb) {
var engine = requires.twing || (requires.twing = require('twing'));
try {
let rendTmpl = new engine.TwingEnvironment(new engine.TwingLoaderNull()).createTemplate(str).render(options);
let tmpl = cache(options) || cache(options, rendTmpl);
var rendTmpl = new engine.TwingEnvironment(new engine.TwingLoaderNull()).createTemplate(str).render(options);
var tmpl = cache(options) || cache(options, rendTmpl);
cb(null, tmpl);
} catch (err) {
cb(err);
Expand Down

0 comments on commit 6022dbc

Please sign in to comment.