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:
parent
d60d1737cc
commit
d3871194a6
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user