]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/prune-storage.ts
Live streaming implementation first step
[github/Chocobozzz/PeerTube.git] / scripts / prune-storage.ts
index 2b04e906d999ba4d1ffb54148724f33ce1bb6ab5..1def1d792f882d7098445c07f9420d15bbb4c02e 100755 (executable)
@@ -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)
     })
   })
 }