Skip to content

Commit

Permalink
add missing return
Browse files Browse the repository at this point in the history
  • Loading branch information
mkabilov committed Sep 28, 2017
1 parent 48a43c5 commit be8bf22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/cluster/pg.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit be8bf22

Please sign in to comment.