Skip to content

Commit

Permalink
remove condition
Browse files Browse the repository at this point in the history
  • Loading branch information
mathnogueira committed Sep 15, 2023
1 parent aa824b9 commit b6a87c9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions server/traces/trace_entities.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,6 @@ func (t *Trace) Spans() []Span {
return []Span{}
}

if len(t.Flat) == 0 {
t.Flat = make(map[trace.SpanID]*Span)
flattenSpans(t.Flat, t.RootSpan)
}

spans := make([]Span, 0, len(t.Flat))
for _, span := range t.Flat {
spans = append(spans, *span)
Expand Down

0 comments on commit b6a87c9

Please sign in to comment.