Update python/ql/src/semmle/python/functions/ModificationOfParameterWithDefault.qll

Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
This commit is contained in:
yoff
2021-09-07 15:08:50 +02:00
committed by GitHub
parent e8644f6f2a
commit 43effd2b40

View File

@@ -36,7 +36,7 @@ module ModificationOfParameterWithDefault {
override predicate isBarrier(DataFlow::Node node) { node instanceof Barrier }
override predicate isBarrierGuard(DataFlow::BarrierGuard guard) {
// if we are tracking a emmpty default, then we should not modify falsy values
// if we are tracking a empty default, then we should not modify falsey values
nonEmptyDefault = false and guard instanceof BlocksFalsey
or
// if we are tracking a non-empty default, then we should not modify truthy values