mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 06:24:11 +01:00 
			
		
		
		
	Fix lint errors
This commit is contained in:
		
							parent
							
								
									1f7837d6d6
								
							
						
					
					
						commit
						ec3a696e2d
					
				@ -6,7 +6,7 @@ package models
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
func keysInt64(m map[int64]struct{}) []int64 {
 | 
					func keysInt64(m map[int64]struct{}) []int64 {
 | 
				
			||||||
	var keys = make([]int64, 0, len(m))
 | 
						var keys = make([]int64, 0, len(m))
 | 
				
			||||||
	for k, _ := range m {
 | 
						for k := range m {
 | 
				
			||||||
		keys = append(keys, k)
 | 
							keys = append(keys, k)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	return keys
 | 
						return keys
 | 
				
			||||||
 | 
				
			|||||||
@ -1800,7 +1800,7 @@ type SearchRepoOptions struct {
 | 
				
			|||||||
func SearchRepositoryByName(opts *SearchRepoOptions) (repos RepositoryList, _ int64, _ error) {
 | 
					func SearchRepositoryByName(opts *SearchRepoOptions) (repos RepositoryList, _ int64, _ error) {
 | 
				
			||||||
	var (
 | 
						var (
 | 
				
			||||||
		sess *xorm.Session
 | 
							sess *xorm.Session
 | 
				
			||||||
		cond builder.Cond = builder.NewCond()
 | 
							cond = builder.NewCond()
 | 
				
			||||||
	)
 | 
						)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if len(opts.Keyword) == 0 {
 | 
						if len(opts.Keyword) == 0 {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user