From 33bcf2d1ea60f0df672d797666106ce08e67f052 Mon Sep 17 00:00:00 2001 From: tamaina Date: Fri, 3 Apr 2020 17:17:46 +0900 Subject: [PATCH] Fix lint --- src/tools/add-emoji.ts | 4 ++-- src/tools/refresh-question.ts | 2 +- src/tools/resync-remote-user.ts | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/tools/add-emoji.ts b/src/tools/add-emoji.ts index 911108b04..4f54b5b46 100644 --- a/src/tools/add-emoji.ts +++ b/src/tools/add-emoji.ts @@ -18,10 +18,10 @@ export default () => { const args = process.argv.slice(3); const name = args[0]; const url = args[1]; - + if (!name) throw new Error('require name'); if (!url) throw new Error('require url'); - + main(name, url).then(() => { console.log('success'); process.exit(0); diff --git a/src/tools/refresh-question.ts b/src/tools/refresh-question.ts index 5104590bf..ff849aed7 100644 --- a/src/tools/refresh-question.ts +++ b/src/tools/refresh-question.ts @@ -7,7 +7,7 @@ async function main(uri: string): Promise { export default () => { const args = process.argv.slice(3); const uri = args[0]; - + main(uri).then(result => { console.log(`Done: ${result}`); process.exit(0); diff --git a/src/tools/resync-remote-user.ts b/src/tools/resync-remote-user.ts index 497bb89f3..c30b64572 100644 --- a/src/tools/resync-remote-user.ts +++ b/src/tools/resync-remote-user.ts @@ -10,17 +10,17 @@ export default () => { // get args const args = process.argv.slice(3); let acct = args[0]; - + // normalize args acct = acct.replace(/^@/, ''); - + // check args if (!acct.match(/^\w+@\w/)) { throw `Invalid acct format. Valid format are user@host`; } - + console.log(`resync ${acct}`); - + main(acct).then(() => { console.log('Done'); process.exit(0);