mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
Update python/ql/src/semmle/python/functions/ModificationOfParameterWithDefault.qll
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user