Skip to content

Commit 535db98

Browse files
RasmusWLtausbn
andcommitted
Python: Minor simplification of ActiveThreatModelSource
Co-authored-by: Taus <[email protected]>
1 parent 4a21a85 commit 535db98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/ql/lib/semmle/python/Concepts.qll

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ module ThreatModelSource {
5858
/**
5959
* A data flow source that is enabled in the current threat model configuration.
6060
*/
61-
class ActiveThreatModelSource extends DataFlow::Node {
61+
class ActiveThreatModelSource extends ThreatModelSource {
6262
ActiveThreatModelSource() {
6363
exists(string kind |
6464
currentThreatModel(kind) and
65-
this.(ThreatModelSource).getThreatModel() = kind
65+
this.getThreatModel() = kind
6666
)
6767
}
6868
}

0 commit comments

Comments
 (0)