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 {
60
60
result instanceof DataFlow:: ValueNode
61
61
}
62
62
63
- private
64
- DataFlow:: Node getFactoryNodeInternal ( ) {
63
+ private DataFlow:: Node getFactoryNodeInternal ( ) {
65
64
result = DataFlow:: valueNode ( getLastArgument ( ) ) or
66
65
result = getFactoryNodeInternal ( ) .getAPredecessor ( )
67
66
}
Original file line number Diff line number Diff line change @@ -10,8 +10,7 @@ module LazyCache {
10
10
*
11
11
* A lazy-cache object, usually created through an expression of form `require('lazy-cache')(require)`.
12
12
*/
13
- deprecated
14
- class LazyCacheObject extends DataFlow:: SourceNode {
13
+ deprecated class LazyCacheObject extends DataFlow:: SourceNode {
15
14
LazyCacheObject ( ) {
16
15
// Use `require` directly instead of `moduleImport` to avoid recursion.
17
16
// For the same reason, avoid `Import.getImportedPath`.
@@ -55,9 +54,7 @@ module LazyCache {
55
54
56
55
override PathExpr getImportedPath ( ) { result = getArgument ( 0 ) }
57
56
58
- private LazyCacheVariable getVariable ( ) {
59
- result = cache
60
- }
57
+ private LazyCacheVariable getVariable ( ) { result = cache }
61
58
62
59
pragma [ noopt]
63
60
override DataFlow:: Node getImportedModuleNode ( ) {
You can’t perform that action at this time.
0 commit comments