mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-11 22:07:27 -08:00
fix redundant err!=nil check in web.go (#5346)
Signed-off-by: tariqibrahim <tariq181290@gmail.com>
This commit is contained in:
parent
67385f356f
commit
d6f0e14ac6
|
@ -253,10 +253,7 @@ func New(logger log.Logger, o *Options) *Handler {
|
|||
o.Flags,
|
||||
h.testReady,
|
||||
func() api_v1.TSDBAdmin {
|
||||
if db := h.options.TSDB(); db != nil {
|
||||
return db
|
||||
}
|
||||
return nil
|
||||
return h.options.TSDB()
|
||||
},
|
||||
h.options.EnableAdminAPI,
|
||||
logger,
|
||||
|
|
Loading…
Reference in a new issue