summaryrefslogtreecommitdiff
path: root/src/tools/refresh-question.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-04-03 23:35:14 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-04-03 23:35:14 +0900
commiteec1af1f52aa217e12e52c7c9d66f0106e66a200 (patch)
treec89a99e6d289c411f1457743776a9d097c9e6554 /src/tools/refresh-question.ts
parentAPメンションはaudienceじゃなくてtagを参照するなど (#6128) (diff)
downloadsharkey-eec1af1f52aa217e12e52c7c9d66f0106e66a200.tar.gz
sharkey-eec1af1f52aa217e12e52c7c9d66f0106e66a200.tar.bz2
sharkey-eec1af1f52aa217e12e52c7c9d66f0106e66a200.zip
Revert
Diffstat (limited to 'src/tools/refresh-question.ts')
-rw-r--r--src/tools/refresh-question.ts18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/tools/refresh-question.ts b/src/tools/refresh-question.ts
index ff849aed7f..83d71ff303 100644
--- a/src/tools/refresh-question.ts
+++ b/src/tools/refresh-question.ts
@@ -4,15 +4,11 @@ async function main(uri: string): Promise<any> {
return await updateQuestion(uri);
}
-export default () => {
- const args = process.argv.slice(3);
- const uri = args[0];
+const args = process.argv.slice(2);
+const uri = args[0];
- main(uri).then(result => {
- console.log(`Done: ${result}`);
- process.exit(0);
- }).catch(e => {
- console.warn(e);
- process.exit(1);
- });
-}
+main(uri).then(result => {
+ console.log(`Done: ${result}`);
+}).catch(e => {
+ console.warn(e);
+});