revert "Call after initialize for gorm.Config"

This commit is contained in:
strowk 2025-07-25 18:42:22 +02:00
parent 49eaeacb89
commit 8e92858e9a

View File

@ -137,14 +137,6 @@ func Open(dialector Dialector, opts ...Option) (db *DB, err error) {
return isConfig && !isConfig2
})
if len(opts) > 0 {
if c, ok := opts[0].(*Config); ok {
config = c
} else {
opts = append([]Option{config}, opts...)
}
}
var skipAfterInitialize bool
for _, opt := range opts {
if opt != nil {