enable staticcheck QFxxxx rules (#34064)

This commit is contained in:
TheFox0x7 authored and GitHub committed 2025-03-29 17:32:28 -04:00
1 parent 5564c39105
commit 2a59dfbd47
47 files changed
+179 -143

No files matched your search

+1 -4
View File
@@ -447,10 +447,7 @@ func preReceiveFor(ctx *preReceiveContext, refFullName git.RefName) {
baseBranchName := refFullName.ForBranchName()
baseBranchExist := false
if gitrepo.IsBranchExist(ctx, ctx.Repo.Repository, baseBranchName) {
baseBranchExist = true
}
baseBranchExist := gitrepo.IsBranchExist(ctx, ctx.Repo.Repository, baseBranchName)
if !baseBranchExist {
for p, v := range baseBranchName {