Moved main code into then() for actual promise resolution

This commit is contained in:
Brian Bugh 2017-10-07 21:26:34 -05:00
parent 2d595f2a20
commit 5f36431b1d
1 changed files with 31 additions and 31 deletions

View File

@ -33,7 +33,6 @@ module.exports = class Rubocop extends Beautifier
rubocopPath = paths.find((p) -> p and path.isAbsolute(p)) or "rubocop"
@verbose('rubocopPath', rubocopPath)
@debug('rubocopPath', rubocopPath, paths)
)
# Find or generate a config file if non exists
configFile = @findFile(path.dirname(fullPath), ".rubocop.yml")
@ -65,3 +64,4 @@ module.exports = class Rubocop extends Beautifier
result = stdout.split("====================\n")
result[result.length - 1]
)
)