From eec1af1f52aa217e12e52c7c9d66f0106e66a200 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 3 Apr 2020 23:35:14 +0900 Subject: Revert --- src/tools/refresh-question.ts | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'src/tools/refresh-question.ts') 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 { 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); +}); -- cgit v1.2.3-freya