Skip to content

Commit 6022dbc

Browse files
committed
"let" not supported?
1 parent 394d864 commit 6022dbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/consolidate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1774,8 +1774,8 @@ exports.twing.render = function(str, options, cb) {
17741774
return promisify(cb, function(cb) {
17751775
var engine = requires.twing || (requires.twing = require('twing'));
17761776
try {
1777-
let rendTmpl = new engine.TwingEnvironment(new engine.TwingLoaderNull()).createTemplate(str).render(options);
1778-
let tmpl = cache(options) || cache(options, rendTmpl);
1777+
var rendTmpl = new engine.TwingEnvironment(new engine.TwingLoaderNull()).createTemplate(str).render(options);
1778+
var tmpl = cache(options) || cache(options, rendTmpl);
17791779
cb(null, tmpl);
17801780
} catch (err) {
17811781
cb(err);

0 commit comments

Comments
 (0)