mirror of https://github.com/Chocobozzz/PeerTube
linting
This commit is contained in:
parent
7eb5f8cd32
commit
8a2db2e8cb
|
@ -46,22 +46,22 @@ const processOptions = {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function promptPassword () {
|
async function promptPassword () {
|
||||||
return new Promise ( (res, rej) => {
|
return new Promise((res, rej) => {
|
||||||
prompt.start()
|
prompt.start()
|
||||||
const schema = {
|
const schema = {
|
||||||
properties: {
|
properties: {
|
||||||
password: {
|
password: {
|
||||||
hidden: true,
|
hidden: true,
|
||||||
required: true
|
required: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
prompt.get(schema, function (err, result) {
|
prompt.get(schema, function (err, result) {
|
||||||
if (err) {
|
if (err) {
|
||||||
return rej(err);
|
return rej(err)
|
||||||
}
|
}
|
||||||
return res(result.password)
|
return res(result.password)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue