Skip to content

Commit

Permalink
Refactor OTelDistinctQuery>>value:
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel-Darbord committed May 2, 2024
1 parent 1742a36 commit 2b11de6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Famix-OpenTelemetry-Importer/OTelDistinctQuery.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ Class {
OTelDistinctQuery >> value: model [
"Only keep distinct spans in the model."

| groups |
groups := model allSpans groupedBy: selector.
groups valuesDo: [ :spans |
(model allSpans groupedBy: selector) valuesDo: [ :spans |
2 to: spans size do: [ :i | self removeSpan: (spans at: i) ] ].
^ model
]

0 comments on commit 2b11de6

Please sign in to comment.