From 8a2db2e8cb67f7f802ecb35be7b9154695f1a6ec Mon Sep 17 00:00:00 2001 From: John Livingston Date: Fri, 11 May 2018 11:26:50 +0200 Subject: linting --- server/tools/import-videos.ts | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'server') diff --git a/server/tools/import-videos.ts b/server/tools/import-videos.ts index 678503a3e..fd351ae7e 100644 --- a/server/tools/import-videos.ts +++ b/server/tools/import-videos.ts @@ -39,29 +39,29 @@ run().catch(err => console.error(err)) let accessToken: string let client: { id: string, secret: string } - + const processOptions = { cwd: __dirname, maxBuffer: Infinity } async function promptPassword () { - return new Promise ( (res, rej) => { - prompt.start() - const schema = { - properties: { - password: { - hidden: true, - required: true - } - } - } - prompt.get(schema, function (err, result) { - if (err) { - return rej(err); - } - return res(result.password) - }) + return new Promise((res, rej) => { + prompt.start() + const schema = { + properties: { + password: { + hidden: true, + required: true + } + } + } + prompt.get(schema, function (err, result) { + if (err) { + return rej(err) + } + return res(result.password) + }) }) } @@ -69,7 +69,7 @@ async function run () { if (!user.password) { user.password = await promptPassword() } - + const res = await getClient(program['url']) client = { id: res.body.client_id, -- cgit v1.2.3