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 {
4040 ContributorInfo getAuthor ( ) { result = getPropValue ( "author" ) }
4141
4242 /** Gets information for a contributor to this package. */
43- ContributorInfo getAContributor ( ) {
44- result = getPropValue ( "contributors" ) .getElementValue ( _)
45- }
43+ ContributorInfo getAContributor ( ) { result = getPropValue ( "contributors" ) .getElementValue ( _) }
4644
4745 /** Gets the array of files for this package. */
4846 JSONArray getFiles ( ) { result = getPropValue ( "files" ) }
Original file line number Diff line number Diff line change @@ -233,11 +233,7 @@ private module TypeScriptOutDir {
233233 tsconfig .getFile ( ) .getBaseName ( ) .regexpMatch ( "tsconfig.*\\.json" ) and
234234 tsconfig .isTopLevel ( ) and
235235 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 ( )
241237 }
242238
243239 /**
@@ -279,22 +275,15 @@ private module TypeScriptOutDir {
279275 pragma [ inline]
280276 private string getARootDirFromInclude ( JSONObject tsconfig ) {
281277 result =
282- getRootFolderFromPath ( tsconfig
283- .getPropValue ( "include" )
284- .getElementValue ( _)
285- .getStringValue ( ) )
278+ getRootFolderFromPath ( tsconfig .getPropValue ( "include" ) .getElementValue ( _) .getStringValue ( ) )
286279 }
287280
288281 /**
289282 * Gets the value of the "rootDir" option from a tsconfig.json.
290283 */
291284 pragma [ inline]
292285 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 ( )
298287 }
299288}
300289
You can’t perform that action at this time.
0 commit comments