Apply suggestions from code review

Will make the same renames in the changed code also..

Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
This commit is contained in:
yoff
2020-09-14 15:28:01 +02:00
committed by GitHub
parent 033529e85e
commit 2a4e28db16
2 changed files with 4 additions and 4 deletions

View File

@@ -3,9 +3,9 @@ import experimental.dataflow.tainttracking.TestTaintLib
class IsSafeCheck extends DataFlow::BarrierGuard {
IsSafeCheck() { this.(CallNode).getNode().getFunc().(Name).getId() = "emulated_is_safe" }
override predicate checks(ControlFlowNode node, boolean testIsTrue) {
override predicate checks(ControlFlowNode node, boolean branch) {
node = this.(CallNode).getAnArg() and
testIsTrue = true
branch = true
}
}