fix(euler): Fixed broken build

This commit is contained in:
Mrugesh Mohapatra
2018-01-12 04:09:37 +05:30
parent 36612f023a
commit 3b291b26ef
2 changed files with 7 additions and 5 deletions

View File

@@ -215,10 +215,12 @@ Observable.from(getChallenges())
.toArray()
.subscribe(
(noSolutions) => {
console.log(
'# These challenges have no solutions\n- [ ] ' +
noSolutions.join('\n- [ ] ')
);
if(noSolutions){
console.log(
'# These challenges have no solutions\n- [ ] ' +
noSolutions.join('\n- [ ] ')
);
}
},
err => { throw err; },
() => process.exit(0)