Skip to content

Commit

Permalink
Marshall Main review: adjusting index into ancestry array
Browse files Browse the repository at this point in the history
  • Loading branch information
Brent Kimmel committed Apr 30, 2020
1 parent f081e72 commit f964d77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/endpoint/common/generate_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,9 @@ export class EndpointDocGenerator {
for (let i = 0; i < ancestry.length; i++) {
yield ancestry[i];
}
// ancestry will always have at least 2 elements, and the second to last element will be the process associated with the alert
// ancestry will always have at least 2 elements, and the last element will be the process associated with the alert
yield* this.descendantsTreeGenerator(
ancestry[ancestry.length - 2],
ancestry[ancestry.length - 1],
childGenerations,
maxChildrenPerNode,
relatedEventsPerNode,
Expand Down

0 comments on commit f964d77

Please sign in to comment.