mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	Linting
This commit is contained in:
		@@ -149,7 +149,7 @@ func GetLabelByID(id int64) (*Label, error) {
 | 
				
			|||||||
	return getLabelInRepoByID(x, 0, id)
 | 
						return getLabelInRepoByID(x, 0, id)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// GetLabelInRepoByID returns a label by ID in given repository.
 | 
					// GetLabelInRepoByName returns a label by name in given repository.
 | 
				
			||||||
func GetLabelInRepoByName(repoID int64, labelName string) (*Label, error) {
 | 
					func GetLabelInRepoByName(repoID int64, labelName string) (*Label, error) {
 | 
				
			||||||
	return getLabelInRepoByName(x, repoID, labelName)
 | 
						return getLabelInRepoByName(x, repoID, labelName)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -30,12 +30,12 @@ func ListIssues(ctx *context.APIContext) {
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
	if ctx.Query("state") == "all" {
 | 
						if ctx.Query("state") == "all" {
 | 
				
			||||||
		issueOpts.IsClosed = !issueOpts.IsClosed
 | 
							issueOpts.IsClosed = !issueOpts.IsClosed
 | 
				
			||||||
		temp_issues, err := models.Issues(&issueOpts)
 | 
							tempIssues, err := models.Issues(&issueOpts)
 | 
				
			||||||
		if err != nil {
 | 
							if err != nil {
 | 
				
			||||||
			ctx.Error(500, "Issues", err)
 | 
								ctx.Error(500, "Issues", err)
 | 
				
			||||||
			return
 | 
								return
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		issues = append(issues, temp_issues...)
 | 
							issues = append(issues, tempIssues...)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// FIXME: use IssueList to improve performance.
 | 
						// FIXME: use IssueList to improve performance.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user