Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorybesson committed Oct 2, 2016
1 parent 7c320c7 commit 865d41b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
17 changes: 4 additions & 13 deletions src/cli/core/config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var loadLocalConfig = (result) => {
stat = fse.statSync(website + '/abe.json')
if (stat) {
var json = fse.readJsonSync(website + '/abe.json')
var result = extend(true, result, json)
result = extend(true, result, json)
}
}catch(e) {
if (!hintAbeJson) {
Expand All @@ -30,7 +30,9 @@ var loadLocalConfig = (result) => {
}
}
}
}catch(e){}
}catch(e){
console.log('LoadConfig Error')
}
}

loadLocalConfig(result)
Expand Down Expand Up @@ -58,17 +60,6 @@ result.getDefault = (conf) => {
}

result.get = (conf, file) => {
return result.exist(conf, result)

if(typeof file !== 'undefined' && file !== null && file !== '') {
var website = file.replace(result.root, '')
website = website.split('/')[0]

var websiteConf = result.exist(conf, result.websites[website])
if(websiteConf !== false) {
return websiteConf
}
}

return result.exist(conf, result)
}
Expand Down
2 changes: 1 addition & 1 deletion src/cli/helpers/file-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ export default class FileParser {
var name1 = entry.name1 ? entry.name1 : ''
var name2 = entry.name2 ? entry.name2 : ''

let exclude = new RegExp(config.files.exclude);
let exclude = new RegExp(config.files.exclude)
if(!exclude.test(name1) && !exclude.test(name2) && entry.type1 !== 'directory' && entry.type2 !== 'directory') {

if(typeof entry.path1 !== 'undefined' && entry.path1 !== null) {
Expand Down

0 comments on commit 865d41b

Please sign in to comment.