Browse Source

fix redundant err!=nil check in web.go (#5346)

Signed-off-by: tariqibrahim <tariq181290@gmail.com>
pull/5350/head
Tariq Ibrahim 6 years ago committed by Brian Brazil
parent
commit
d6f0e14ac6
  1. 5
      web/web.go

5
web/web.go

@ -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…
Cancel
Save