JS: Make CredentialsFunctionName use nameIndicatesSensitiveData

Someone from JS team needs to verify that this is actually OK.
This commit is contained in:
Rasmus Wriedt Larsen
2021-04-21 11:38:52 +02:00
parent e977d6eb75
commit 08e86fdfe5

View File

@@ -129,11 +129,7 @@ abstract class SensitiveDataFunctionName extends SensitiveFunctionName {
class CredentialsFunctionName extends SensitiveDataFunctionName {
SensitiveDataClassification classification;
CredentialsFunctionName() {
// TODO: is it by purpose that we don't check whether `this` does not
// match the regexps in `notSensitive`?
this.regexpMatch(maybeSensitive(classification))
}
CredentialsFunctionName() { nameIndicatesSensitiveData(this, classification) }
override SensitiveDataClassification getClassification() { result = classification }
}