Skip to content

Commit

Permalink
Why the formatter behavior strange?
Browse files Browse the repository at this point in the history
  • Loading branch information
lijunle committed Jan 4, 2018
1 parent bbc00cb commit 0982e22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.ts
Expand Up @@ -19,8 +19,8 @@ function readCompilerOptions(configPath: string) {
// First step: Let tsc pick up the config.
const loaded = tsc.readConfigFile(configPath, file => {
const read = tsc.sys.readFile(file);
// See
// https://github.com/Microsoft/TypeScript/blob/a757e8428410c2196886776785c16f8f0c2a62d9/src/compiler/sys.ts#L203 :
// tslint:disable-next-line:max-line-length
// See https://github.com/Microsoft/TypeScript/blob/a757e8428410c2196886776785c16f8f0c2a62d9/src/compiler/sys.ts#L203 :
// `readFile` returns `undefined` in case the file does not exist!
if (!read) {
throw new Error(
Expand Down

0 comments on commit 0982e22

Please sign in to comment.