Update functions that return error to not return pointer
* Matches Golang convention
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ func LoadConfig(environment string) config.Config {
|
||||
if err != nil {
|
||||
log.Fatalf("Error loading config\n%v", err)
|
||||
}
|
||||
return *cfg
|
||||
return cfg
|
||||
}
|
||||
|
||||
func LoadPostgres(database config.Database) repositories.Postgres {
|
||||
|
||||
Reference in New Issue
Block a user