Python: Minor simplification of ActiveThreatModelSource

Co-authored-by: Taus <tausbn@github.com>
This commit is contained in:
Rasmus Wriedt Larsen
2024-09-23 11:21:55 +02:00
parent 4a21a85e73
commit 535db98823

View File

@@ -58,11 +58,11 @@ module ThreatModelSource {
/**
* A data flow source that is enabled in the current threat model configuration.
*/
class ActiveThreatModelSource extends DataFlow::Node {
class ActiveThreatModelSource extends ThreatModelSource {
ActiveThreatModelSource() {
exists(string kind |
currentThreatModel(kind) and
this.(ThreatModelSource).getThreatModel() = kind
this.getThreatModel() = kind
)
}
}