Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
clemiller committed Nov 21, 2024
2 parents 7b39f16 + 5f3c6ad commit cf76f57
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nav-app/src/app/classes/stix/technique.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export class Technique extends StixObject {
*/
public get_technique_tactic_id(tactic: string | Tactic): string {
let tactic_shortname = tactic instanceof Tactic ? tactic.shortname : tactic;

if (!this.tactics.includes(tactic_shortname)) {
throw new Error(tactic_shortname + ' is not a tactic of ' + this.attackID);
}
Expand Down

0 comments on commit cf76f57

Please sign in to comment.