Format code with go fmt

This commit is contained in:
Ivan R. 2023-04-09 12:23:58 +05:00
parent 691ad33279
commit e1c99a6092
No known key found for this signature in database
GPG key ID: 56C7BAAE859B302C
2 changed files with 6 additions and 6 deletions

View file

@ -3,14 +3,14 @@ package backend
import (
"gorm.io/driver/sqlite"
"gorm.io/gorm"
"os"
"os"
)
func GetDatabaseConnection() (*gorm.DB, error) {
dbPath := os.Getenv("PHOENIX_DB_PATH")
if dbPath == "" {
dbPath = "db.sqlite3"
}
dbPath := os.Getenv("PHOENIX_DB_PATH")
if dbPath == "" {
dbPath = "db.sqlite3"
}
db, err := gorm.Open(sqlite.Open(dbPath), &gorm.Config{})
if err != nil {

View file

@ -69,5 +69,5 @@ func main() {
views.DeleteLink(c, db)
})
r.Run(":8080")
r.Run(":8080")
}