Rename GetDb() to Db() in comments, see #50

This commit is contained in:
Michael Mayer 2018-12-21 02:39:31 +01:00
parent 40fae6a28f
commit c639a81c90
2 changed files with 2 additions and 2 deletions

View file

@ -426,7 +426,7 @@ func (c *Config) GetPublicBuildPath() string {
return c.GetPublicPath() + "/build" return c.GetPublicPath() + "/build"
} }
// GetDb returns the db connection. // Db returns the db connection.
func (c *Config) Db() *gorm.DB { func (c *Config) Db() *gorm.DB {
if c.db == nil { if c.db == nil {
c.connectToDatabase() c.connectToDatabase()

View file

@ -283,7 +283,7 @@ func (c *Config) GetPublicBuildPath() string {
return c.GetPublicPath() + "/build" return c.GetPublicPath() + "/build"
} }
// GetDb gets a db connection. If it already is estabilished it will return that. // Db gets a db connection. If it already is estabilished it will return that.
func (c *Config) Db() *gorm.DB { func (c *Config) Db() *gorm.DB {
if c.db == nil { if c.db == nil {
c.connectToDatabase() c.connectToDatabase()