1
0
mirror of https://github.com/bobwen-dev/react-templates synced 2025-04-12 00:56:39 +02:00

added semicolons

This commit is contained in:
Drew LeSueur 2015-02-06 07:52:08 -07:00
parent d60d1737cc
commit d3871194a6

View File

@ -26,7 +26,7 @@ function convertFile(source, target, options, context) {
}
var html = fs.readFileSync(source).toString();
var shouldAddName = options.modules === 'none' && !options.name
var shouldAddName = options.modules === 'none' && !options.name;
if (shouldAddName) {
options.name = reactTemplates.normalizeName(path.basename(source, path.extname(source))) + 'RT';
}
@ -35,7 +35,7 @@ function convertFile(source, target, options, context) {
fs.writeFileSync(target, js);
}
if (shouldAddName) {
delete options.name
delete options.name;
}
}