Skip to content

Commit

Permalink
Java: Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Anders Schack-Mulligen <[email protected]>
  • Loading branch information
michaelnebel and aschackmull authored Oct 27, 2023
1 parent d2afb20 commit e4276f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared/threat-models/codeql/threatmodels/ThreatModels.qll
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ private string getParentThreatModel(string child) {
* whose `kind` column includes the specified threat model kind.
*/
private predicate threatModelEnabled(string kind) {
// Find the highest-oriority configuration row whose `kind` column includes the specified threat
// Find the highest-priority configuration row whose `kind` column includes the specified threat
// model kind. If such a row exists and its `enabled` column is `true`, then the threat model is
// enabled.
knownThreatModel(kind) and
Expand All @@ -69,7 +69,7 @@ private predicate threatModelEnabled(string kind) {
*/
bindingset[kind]
predicate currentThreatModel(string kind) {
knownThreatModel(kind) and threatModelEnabled(kind)
threatModelEnabled(kind)
or
// For any threat model kind not mentioned in the configuration or grouping tables, its state of
// enablement is controlled only by the entries that specifiy the "all" kind.
Expand Down

0 comments on commit e4276f7

Please sign in to comment.