fix(report): panic when closing db connection of gost (#1222)
This commit is contained in:
@@ -30,6 +30,9 @@ type Base struct {
|
||||
}
|
||||
|
||||
func (b Base) CloseDB() error {
|
||||
if b.DBDriver.DB == nil {
|
||||
return nil
|
||||
}
|
||||
return b.DBDriver.DB.CloseDB()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user