File tree Expand file tree Collapse file tree 1 file changed +3
-15
lines changed Expand file tree Collapse file tree 1 file changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import yargs from 'yargs';
5
5
import { hideBin } from 'yargs/helpers' ;
6
6
7
7
import { getConfig } from '../lib/file-utils.js' ;
8
- import { formatError } from '../lib/log-utils.js' ;
9
8
import gtfsRide from '../index.js' ;
10
9
11
10
const { argv } = yargs ( hideBin ( process . argv ) )
@@ -43,17 +42,6 @@ const { argv } = yargs(hideBin(process.argv))
43
42
} )
44
43
. default ( 'skipAPCImport' , undefined ) ;
45
44
46
- const handleError = ( error ) => {
47
- const text = error || 'Unknown Error' ;
48
- process . stdout . write ( `\n${ formatError ( text ) } \n` ) ;
49
- console . error ( error ) ;
50
- process . exit ( 1 ) ;
51
- } ;
52
-
53
- const setupImport = async ( ) => {
54
- const config = await getConfig ( argv ) ;
55
- await gtfsRide ( config ) ;
56
- process . exit ( ) ;
57
- } ;
58
-
59
- setupImport ( ) . catch ( handleError ) ;
45
+ const config = await getConfig ( argv ) ;
46
+ await gtfsRide ( config ) ;
47
+ process . exit ( ) ;
You can’t perform that action at this time.
0 commit comments