File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
javascript/ql/src/semmle/javascript Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -60,8 +60,7 @@ class AmdModuleDefinition extends CallExpr {
6060 result instanceof DataFlow:: ValueNode
6161 }
6262
63- private
64- DataFlow:: Node getFactoryNodeInternal ( ) {
63+ private DataFlow:: Node getFactoryNodeInternal ( ) {
6564 result = DataFlow:: valueNode ( getLastArgument ( ) ) or
6665 result = getFactoryNodeInternal ( ) .getAPredecessor ( )
6766 }
Original file line number Diff line number Diff line change @@ -10,8 +10,7 @@ module LazyCache {
1010 *
1111 * A lazy-cache object, usually created through an expression of form `require('lazy-cache')(require)`.
1212 */
13- deprecated
14- class LazyCacheObject extends DataFlow:: SourceNode {
13+ deprecated class LazyCacheObject extends DataFlow:: SourceNode {
1514 LazyCacheObject ( ) {
1615 // Use `require` directly instead of `moduleImport` to avoid recursion.
1716 // For the same reason, avoid `Import.getImportedPath`.
@@ -55,9 +54,7 @@ module LazyCache {
5554
5655 override PathExpr getImportedPath ( ) { result = getArgument ( 0 ) }
5756
58- private LazyCacheVariable getVariable ( ) {
59- result = cache
60- }
57+ private LazyCacheVariable getVariable ( ) { result = cache }
6158
6259 pragma [ noopt]
6360 override DataFlow:: Node getImportedModuleNode ( ) {
You can’t perform that action at this time.
0 commit comments