Skip to content

Commit 0ebbd80

Browse files
committed
autoformat
1 parent 58af63d commit 0ebbd80

File tree

1 file changed

+7
-3
lines changed
  • javascript/ql/test/library-tests/CustomLoadStoreSteps

1 file changed

+7
-3
lines changed

javascript/ql/test/library-tests/CustomLoadStoreSteps/test.ql

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,14 @@ class Configuration extends TaintTracking::Configuration {
1919
) and
2020
prop = "bar"
2121
}
22-
22+
2323
// calling .copy("foo", "bar") actually moves a property from "foo" to "bar".
24-
override predicate isAdditionalLoadStoreStep(DataFlow::Node pred, DataFlow::Node succ, string loadProp, string storeProp) {
25-
exists(DataFlow::MethodCallNode call | call.getMethodName() = "copy" and call = succ and pred = call.getReceiver() |
24+
override predicate isAdditionalLoadStoreStep(
25+
DataFlow::Node pred, DataFlow::Node succ, string loadProp, string storeProp
26+
) {
27+
exists(DataFlow::MethodCallNode call |
28+
call.getMethodName() = "copy" and call = succ and pred = call.getReceiver()
29+
|
2630
call.getArgument(0).mayHaveStringValue(loadProp) and
2731
call.getArgument(1).mayHaveStringValue(storeProp)
2832
)

0 commit comments

Comments
 (0)