@@ -60,8 +60,12 @@ namespace ts.JsTyping {
6060
6161 if ( ! safeList ) {
6262 const result = readConfigFile ( safeListPath , ( path : string ) => host . readFile ( path ) ) ;
63- if ( result . config ) { safeList = result . config ; }
64- else { safeList = { } ; } ;
63+ if ( result . config ) {
64+ safeList = result . config ;
65+ }
66+ else {
67+ safeList = { } ;
68+ } ;
6569 }
6670
6771 const filesToWatch : string [ ] = [ ] ;
@@ -188,9 +192,13 @@ namespace ts.JsTyping {
188192 const fileNames = host . readDirectory ( nodeModulesPath , "*.json" , /*exclude*/ undefined , /*depth*/ 2 ) ;
189193 for ( const fileName of fileNames ) {
190194 const normalizedFileName = normalizePath ( fileName ) ;
191- if ( getBaseFileName ( normalizedFileName ) !== "package.json" ) { continue ; }
195+ if ( getBaseFileName ( normalizedFileName ) !== "package.json" ) {
196+ continue ;
197+ }
192198 const result = readConfigFile ( normalizedFileName , ( path : string ) => host . readFile ( path ) ) ;
193- if ( ! result . config ) { continue ; }
199+ if ( ! result . config ) {
200+ continue ;
201+ }
194202 const packageJson : PackageJson = result . config ;
195203
196204 // npm 3's package.json contains a "_requiredBy" field
@@ -203,7 +211,9 @@ namespace ts.JsTyping {
203211
204212 // If the package has its own d.ts typings, those will take precedence. Otherwise the package name will be used
205213 // to download d.ts files from DefinitelyTyped
206- if ( ! packageJson . name ) { continue ; }
214+ if ( ! packageJson . name ) {
215+ continue ;
216+ }
207217 if ( packageJson . typings ) {
208218 const absolutePath = getNormalizedAbsolutePath ( packageJson . typings , getDirectoryPath ( normalizedFileName ) ) ;
209219 inferredTypings [ packageJson . name ] = absolutePath ;
0 commit comments