X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fprune-storage.ts;h=1def1d792f882d7098445c07f9420d15bbb4c02e;hb=2c03a146a52d0999e86d3ae2f9ad87082850dbc6;hp=2b04e906d999ba4d1ffb54148724f33ce1bb6ab5;hpb=80fdaf064562aff968f4c9cea1cf220bc12a70da;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/prune-storage.ts b/scripts/prune-storage.ts index 2b04e906d..1def1d792 100755 --- a/scripts/prune-storage.ts +++ b/scripts/prune-storage.ts @@ -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) }) }) }