Skip to content

Commit e4276f7

Browse files
Java: Apply suggestions from code review
Co-authored-by: Anders Schack-Mulligen <[email protected]>
1 parent d2afb20 commit e4276f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared/threat-models/codeql/threatmodels/ThreatModels.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ private string getParentThreatModel(string child) {
5050
* whose `kind` column includes the specified threat model kind.
5151
*/
5252
private predicate threatModelEnabled(string kind) {
53-
// Find the highest-oriority configuration row whose `kind` column includes the specified threat
53+
// Find the highest-priority configuration row whose `kind` column includes the specified threat
5454
// model kind. If such a row exists and its `enabled` column is `true`, then the threat model is
5555
// enabled.
5656
knownThreatModel(kind) and
@@ -69,7 +69,7 @@ private predicate threatModelEnabled(string kind) {
6969
*/
7070
bindingset[kind]
7171
predicate currentThreatModel(string kind) {
72-
knownThreatModel(kind) and threatModelEnabled(kind)
72+
threatModelEnabled(kind)
7373
or
7474
// For any threat model kind not mentioned in the configuration or grouping tables, its state of
7575
// enablement is controlled only by the entries that specifiy the "all" kind.

0 commit comments

Comments
 (0)