Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Shkuro <[email protected]>
  • Loading branch information
yurishkuro authored Jul 20, 2024
1 parent bae9e39 commit 90176e2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cmd/jaeger/internal/extension/jaegerquery/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,7 @@ func (s *server) createMetricStorage(host component.Host) (metricsstore.Reader,
s.telset.Logger.Info("Metric storage not created", zap.String("reason", err.Error()))
return disabled.NewMetricsReader()
}
if err != nil {
s.telset.Logger.Error("Cannot init metric storage reader", zap.Error(err))
return disabled.NewMetricsReader()
}
return metricsReader, nil
return metricsReader, err
}

func (s *server) makeQueryOptions() *queryApp.QueryOptions {
Expand Down

0 comments on commit 90176e2

Please sign in to comment.