Skip to content

Commit

Permalink
sonarcloud fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
adpare committed Feb 23, 2024
1 parent 130ed03 commit c0a5270
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions nav-app/src/app/services/data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export class DataService {
*/
parseBundle(domain: Domain, stixBundles: any[]): void {
let platforms = new Set<string>();
let techniqueSDOslist = [];
let matricesList = [];
let tacticsList = [];
let seenIDs = new Set<string>();
Expand Down Expand Up @@ -168,7 +167,6 @@ export class DataService {
idToTechniqueSDO.set(sdo.id, sdo);
if (!sdo.x_mitre_is_subtechnique) {
techniqueSDOs.push(sdo);
techniqueSDOslist.push(sdo);
}
break;
case 'x-mitre-tactic':
Expand Down Expand Up @@ -229,9 +227,9 @@ export class DataService {
if (matricesList[i].x_mitre_deprecated) {
continue;
}
for (let j = 0; j < domain.techniques.length; j++) {
if(domain.techniques[j].x_mitre_domains == matricesList[i].external_references[0].external_id) {
techniquesList.push(domain.techniques[j]);
for (let technique of domain.techniques) {
if(technique.x_mitre_domains == matricesList[i].external_references[0].external_id) {
techniquesList.push(technique);
}
}
domain.matrices.push(new Matrix(matricesList[i], tacticsList[i], techniquesList, this));
Expand Down

0 comments on commit c0a5270

Please sign in to comment.