Fix lint
This commit is contained in:
parent
7abb5c5da1
commit
f0af38e696
6 changed files with 135 additions and 130 deletions
|
@ -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)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue