Skip to content

Commit

Permalink
Python: Minor simplification of ActiveThreatModelSource
Browse files Browse the repository at this point in the history
Co-authored-by: Taus <[email protected]>
  • Loading branch information
RasmusWL and tausbn committed Sep 23, 2024
1 parent 4a21a85 commit 535db98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/ql/lib/semmle/python/Concepts.qll
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}
}
Expand Down

0 comments on commit 535db98

Please sign in to comment.