New lint rules

This commit is contained in:
Jamie Curnow committed 2024-11-21 19:07:36 +10:00
1 parent 4e6d65645f
commit 152b7666d8
85 files changed
+385 -259

No files matched your search

+1 -1
View File
@@ -46,8 +46,8 @@ func SetDB(db *gorm.DB) {
func connect() (*gorm.DB, error) {
var d gorm.Dialector
dsn := config.Configuration.DB.GetGormConnectURL()
switch strings.ToLower(config.Configuration.DB.Driver) {
switch strings.ToLower(config.Configuration.DB.Driver) {
case config.DatabaseSqlite:
// autocreate(dsn)
d = sqlite.Open(dsn)