diff options
| author | tamaina <tamaina@hotmail.co.jp> | 2020-04-03 17:17:46 +0900 |
|---|---|---|
| committer | tamaina <tamaina@hotmail.co.jp> | 2020-04-03 17:17:46 +0900 |
| commit | 33bcf2d1ea60f0df672d797666106ce08e67f052 (patch) | |
| tree | 2a9320556532ccbe9da7ec7e21c89b5922db8187 | |
| parent | Pre-render ReDoc (diff) | |
| download | sharkey-33bcf2d1ea60f0df672d797666106ce08e67f052.tar.gz sharkey-33bcf2d1ea60f0df672d797666106ce08e67f052.tar.bz2 sharkey-33bcf2d1ea60f0df672d797666106ce08e67f052.zip | |
Fix lint
| -rw-r--r-- | src/tools/add-emoji.ts | 4 | ||||
| -rw-r--r-- | src/tools/refresh-question.ts | 2 | ||||
| -rw-r--r-- | 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 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<any> { 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); |