Apply code review suggestion

This commit is contained in:
Tony Torralba
2022-05-13 15:09:06 +02:00
parent f0a0ac100b
commit b9f3b3bd37

View File

@@ -12,7 +12,7 @@ class CredentialExpr extends Expr {
CredentialExpr() {
exists(Variable v | this = v.getAnAccess() |
v.getName().regexpMatch(getCommonSensitiveInfoRegex()) and
not (v.isFinal() and v.isStatic())
not this instanceof CompileTimeConstantExpr
)
}
}