Skip to content

Commit 7faca76

Browse files
committed
remove unnecessary check
1 parent 89a51eb commit 7faca76

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

packages/just-task/src/config.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import * as fs from 'fs';
21
import * as path from 'path';
3-
42
import { argv } from './option';
53
import { resolve } from './resolve';
64
import { mark, logger } from 'just-task-logger';
@@ -44,11 +42,6 @@ export async function readConfig(): Promise<{ [key: string]: TaskFunction } | vo
4442
process.exit(1);
4543
}
4644

47-
if (!fs.existsSync(configFile)) {
48-
logger.error(`The specified config file "${configFile}" doesn't exist or couldn't be resolved.`);
49-
process.exit(1);
50-
}
51-
5245
const ext = path.extname(configFile).toLowerCase();
5346

5447
if (ext === '.ts') {

0 commit comments

Comments
 (0)