Python: Apply suggestions from code review

Co-authored-by: yoff <lerchedahl@gmail.com>
This commit is contained in:
Rasmus Wriedt Larsen
2022-02-18 13:47:07 +01:00
committed by GitHub
parent 14a1aa0c11
commit 67ca14876a
2 changed files with 2 additions and 2 deletions

View File

@@ -1979,7 +1979,7 @@ predicate clearsContent(Node n, Content c) {
/**
* Holds if values stored inside attribute `c` are cleared at node `n`.
*
* In `obj.foo = x` the any old value stored in `foo` is cleared at the pre-update node
* In `obj.foo = x` any old value stored in `foo` is cleared at the pre-update node
* associated with `obj`
*/
predicate attributeClearStep(Node n, AttributeContent c) {

View File

@@ -43,7 +43,7 @@ class Argument1RoutingConfig extends DataFlow::Configuration {
* making it seem like we handle all cases even if we only handle the last one.
* We make the test honest by preventing flow into source nodes.
*/
override predicate isBarrierIn(DataFlow::Node node) { isSource(node) }
override predicate isBarrierIn(DataFlow::Node node) { this.isSource(node) }
}
// for argument 2 and up, we use a generic approach. Change `maxNumArgs` below if we