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

Signed-off-by: tariqibrahim <tariq181290@gmail.com>
This commit is contained in:
Tariq Ibrahim 2019-03-12 09:25:46 -07:00 committed by Brian Brazil
parent 67385f356f
commit d6f0e14ac6
1 changed files with 1 additions and 4 deletions

View File

@ -253,10 +253,7 @@ func New(logger log.Logger, o *Options) *Handler {
o.Flags, o.Flags,
h.testReady, h.testReady,
func() api_v1.TSDBAdmin { func() api_v1.TSDBAdmin {
if db := h.options.TSDB(); db != nil { return h.options.TSDB()
return db
}
return nil
}, },
h.options.EnableAdminAPI, h.options.EnableAdminAPI,
logger, logger,