Skip to content

Commit

Permalink
fix:linting
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorybesson committed Oct 29, 2016
1 parent 07f85db commit 9558c1d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/cli/core/manager/Manager.js
Expand Up @@ -80,7 +80,7 @@ class Manager {
})

try {
fse.accessSync(this._pathStructure, fse.F_OK);
fse.accessSync(this._pathStructure, fse.F_OK)
this._watchStructure = watch.createMonitor(this._pathStructure, (monitor) => {
monitor.on('created', (f, stat) => {
this.updateStructureAndTemplates()
Expand All @@ -96,7 +96,7 @@ class Manager {
})
})
} catch (e) {
console.log('the directory ' + this._pathStructure + ' does not exist')
console.log('the directory ' + this._pathStructure + ' does not exist')
}

}
Expand Down
4 changes: 2 additions & 2 deletions src/cli/core/utils/file.js
Expand Up @@ -48,7 +48,7 @@ export function getContent(pathFile) {
* @return {array} array of pathfiles
*/
export function getFiles(dirname, recursive=true, filterExt = '') {
let items = [];
let items = []
return fse.readdirAsync(dirname).map(function(fileName) {
let pathFile = path.join(dirname, fileName)
return fse.statAsync(pathFile).then(function(stat) {
Expand All @@ -61,7 +61,7 @@ export function getFiles(dirname, recursive=true, filterExt = '') {
}
if (recursive) {
return coreUtils.file.getFiles(pathFile, recursive, filterExt).then(function(filesInDir) {
items = items.concat(filesInDir);
items = items.concat(filesInDir)
})
}
})
Expand Down

0 comments on commit 9558c1d

Please sign in to comment.