Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Commit 385b059

Browse files
committed
more readable
1 parent 7e1336e commit 385b059

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/template.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ module.exports = function(tmpl, data){
1313
var fn = template(tmpl, forcedSettings);
1414

1515
var wrapped = function(o) {
16-
if (typeof o === 'undefined' || typeof o.file === 'undefined') throw new Error('Failed to provide the current file as "file" to the template');
16+
if (typeof o === 'undefined' || typeof o.file === 'undefined'){
17+
throw new Error('Failed to provide the current file as "file" to the template');
18+
}
1719
return fn(o);
1820
};
1921

0 commit comments

Comments
 (0)