diff --git a/src/tools/add-emoji.ts b/src/tools/add-emoji.ts index 911108b045..4f54b5b460 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 5104590bf4..ff849aed7f 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 497bb89f36..c30b645725 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);