Code style preferences.

This commit is contained in:
Gajus Kuizinas
2016-03-19 13:01:04 +02:00
parent 329533a130
commit a8a5332d5c
10 changed files with 45 additions and 116 deletions
+4 -7
View File
@@ -31,16 +31,13 @@ export default (directoryPaths, options = {}) => {
});
_.forEach(sortedDirectoryPaths, (directoryPath) => {
let existingIndexCode,
indexCode,
indexFilePath,
siblings;
let existingIndexCode;
siblings = readDirectory(directoryPath);
const siblings = readDirectory(directoryPath);
indexCode = createIndexCode(siblings);
const indexCode = createIndexCode(siblings);
indexFilePath = path.resolve(directoryPath, 'index.js');
const indexFilePath = path.resolve(directoryPath, 'index.js');
try {
existingIndexCode = fs.readFileSync(indexFilePath, 'utf8');