Skip to content

Commit

Permalink
Address Feedback From PR Review
Browse files Browse the repository at this point in the history
Signed-off-by: Mahad Zaryab <mahadzaryab1@gmail.com>
  • Loading branch information
mahadzaryab1 committed Nov 7, 2024
1 parent 97af5de commit e3a8487
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@ type TraceReader struct {
}

func GetV1Reader(reader spanstore.Reader) (spanstore_v1.Reader, error) {
tr, ok := reader.(*TraceReader)
if !ok {
return nil, ErrV1ReaderNotAvailable
if tr, ok := reader.(*TraceReader); ok {
return tr.spanReader, nil
}
return tr.spanReader, nil
return nil, ErrV1ReaderNotAvailable
}

func NewTraceReader(spanReader spanstore_v1.Reader) *TraceReader {
Expand Down

0 comments on commit e3a8487

Please sign in to comment.