fix promise rejection on standard task

This commit is contained in:
2017-05-07 16:01:10 +02:00
parent 9acdfca460
commit ce65b8d7c9
4 changed files with 227 additions and 82 deletions

View File

@ -142,8 +142,6 @@ export class Smartcli {
.then(() => {
if (this.argv._.length === 0 && !this.argv.v) {
done.resolve(this.argv)
} else {
done.reject(this.argv)
}
})
return done.promise