diff --git a/main.go b/main.go index df3c29b4..ae406b8d 100644 --- a/main.go +++ b/main.go @@ -365,10 +365,7 @@ func (s *DB) Rollback() *DB { } func (s *DB) NewRecord(value interface{}) bool { - scope := s.clone().NewScope(value) - result := scope.PrimaryKeyZero() - s.err(scope.db.Error) - return result + return s.clone().NewScope(value).PrimaryKeyZero() } func (s *DB) RecordNotFound() bool {