Skip to content

Commit ffbbdd7

Browse files
committed
JS: Autoformat
1 parent 93971e9 commit ffbbdd7

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

javascript/ql/src/semmle/javascript/AMD.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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
}

javascript/ql/src/semmle/javascript/frameworks/LazyCache.qll

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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() {

0 commit comments

Comments
 (0)