fix(report): panic when closing db connection of gost (#1222)

This commit is contained in:
Kota Kanbe
2021-04-23 06:14:12 +09:00
committed by GitHub
parent a692cec0ef
commit 40039c07e2

View File

@@ -30,6 +30,9 @@ type Base struct {
}
func (b Base) CloseDB() error {
if b.DBDriver.DB == nil {
return nil
}
return b.DBDriver.DB.CloseDB()
}