Skip to content

Commit

Permalink
fix: endless loop in save
Browse files Browse the repository at this point in the history
  • Loading branch information
omniskop committed Jan 20, 2024
1 parent 0123dd4 commit ec1a1d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion finisher_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (db *DB) Save(value interface{}) (tx *DB) {
tx.Statement.Dest = value

reflectValue := reflect.Indirect(reflect.ValueOf(value))
for reflectValue.Kind() == reflect.Ptr || reflectValue.Kind() == reflect.Interface {
for reflectValue.Kind() == reflect.Ptr {
reflectValue = reflect.Indirect(reflectValue)
}

Expand Down

0 comments on commit ec1a1d8

Please sign in to comment.