File tree Expand file tree Collapse file tree 2 files changed +4
-17
lines changed
javascript/ql/src/semmle/javascript Expand file tree Collapse file tree 2 files changed +4
-17
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,7 @@ class PackageJSON extends JSONObject {
40
40
ContributorInfo getAuthor ( ) { result = getPropValue ( "author" ) }
41
41
42
42
/** Gets information for a contributor to this package. */
43
- ContributorInfo getAContributor ( ) {
44
- result = getPropValue ( "contributors" ) .getElementValue ( _)
45
- }
43
+ ContributorInfo getAContributor ( ) { result = getPropValue ( "contributors" ) .getElementValue ( _) }
46
44
47
45
/** Gets the array of files for this package. */
48
46
JSONArray getFiles ( ) { result = getPropValue ( "files" ) }
Original file line number Diff line number Diff line change @@ -233,11 +233,7 @@ private module TypeScriptOutDir {
233
233
tsconfig .getFile ( ) .getBaseName ( ) .regexpMatch ( "tsconfig.*\\.json" ) and
234
234
tsconfig .isTopLevel ( ) and
235
235
tsconfig .getFile ( ) .getParentContainer ( ) = parent and
236
- result =
237
- tsconfig
238
- .getPropValue ( "compilerOptions" )
239
- .getPropValue ( "outDir" )
240
- .getStringValue ( )
236
+ result = tsconfig .getPropValue ( "compilerOptions" ) .getPropValue ( "outDir" ) .getStringValue ( )
241
237
}
242
238
243
239
/**
@@ -279,22 +275,15 @@ private module TypeScriptOutDir {
279
275
pragma [ inline]
280
276
private string getARootDirFromInclude ( JSONObject tsconfig ) {
281
277
result =
282
- getRootFolderFromPath ( tsconfig
283
- .getPropValue ( "include" )
284
- .getElementValue ( _)
285
- .getStringValue ( ) )
278
+ getRootFolderFromPath ( tsconfig .getPropValue ( "include" ) .getElementValue ( _) .getStringValue ( ) )
286
279
}
287
280
288
281
/**
289
282
* Gets the value of the "rootDir" option from a tsconfig.json.
290
283
*/
291
284
pragma [ inline]
292
285
private string getRootDir ( JSONObject tsconfig ) {
293
- result =
294
- tsconfig
295
- .getPropValue ( "compilerOptions" )
296
- .getPropValue ( "rootDir" )
297
- .getStringValue ( )
286
+ result = tsconfig .getPropValue ( "compilerOptions" ) .getPropValue ( "rootDir" ) .getStringValue ( )
298
287
}
299
288
}
300
289
You can’t perform that action at this time.
0 commit comments