add missing return

This commit is contained in:
Murat Kabilov 2017-09-28 11:23:56 +02:00
parent 48a43c5188
commit be8bf22c00
1 changed files with 2 additions and 0 deletions

View File

@ -68,6 +68,8 @@ func (c *Cluster) closeDbConn() (err error) {
c.logger.Errorf("could not close database connection: %v", err)
}
c.pgDb = nil
return nil
}
c.logger.Warning("attempted to close an empty db connection object")
return nil