fix variable shadowing
This commit is contained in:
		
							parent
							
								
									ea8509b777
								
							
						
					
					
						commit
						e3b488f610
					
				
							
								
								
									
										4
									
								
								gorm.go
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								gorm.go
									
									
									
									
									
								
							@ -124,8 +124,8 @@ func Open(dialector Dialector, opts ...Option) (db *DB, err error) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	for _, opt := range opts {
 | 
						for _, opt := range opts {
 | 
				
			||||||
		if opt != nil {
 | 
							if opt != nil {
 | 
				
			||||||
			if err := opt.Apply(config); err != nil {
 | 
								if applyErr := opt.Apply(config); applyErr != nil {
 | 
				
			||||||
				return nil, err
 | 
									return nil, applyErr
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			defer func(opt Option) {
 | 
								defer func(opt Option) {
 | 
				
			||||||
				if errr := opt.AfterInitialize(db); errr != nil {
 | 
									if errr := opt.AfterInitialize(db); errr != nil {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user