1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-03 09:07:19 +00:00

Fix some lints (#17337)

Fix some linting problems.
This commit is contained in:
Lunny Xiao
2021-10-18 03:47:12 +08:00
committed by GitHub
parent 5326f4c9c5
commit 4a57c9ea17
8 changed files with 14 additions and 15 deletions

View File

@ -253,7 +253,7 @@ func CheckPrsForBaseBranch(baseRepo *models.Repository, baseBranchName string) e
// Init runs the task queue to test all the checking status pull requests
func Init() error {
prQueue = queue.CreateUniqueQueue("pr_patch_checker", handle, "").(queue.UniqueQueue)
prQueue = queue.CreateUniqueQueue("pr_patch_checker", handle, "")
if prQueue == nil {
return fmt.Errorf("Unable to create pr_patch_checker Queue")