This commit is contained in:
Chocobozzz 2020-07-30 14:54:31 +02:00 committed by Chocobozzz
parent 7abb5c5da1
commit f0af38e696
6 changed files with 135 additions and 130 deletions

View file

@ -161,7 +161,8 @@ async function askConfirmation () {
}
prompt.get(schema, function (err, result) {
if (err) return rej(err)
return res(result.confirm && result.confirm.match(/y/) !== null)
return res(result.confirm?.match(/y/) !== null)
})
})
}