Skip to content

Commit 1c4fc9e

Browse files
committed
Fix lint
1 parent 1fc95f2 commit 1c4fc9e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

routers/api/v1/repo/branch.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ func CreateBranch(ctx *context.APIContext) {
182182
ctx.Error(http.StatusInternalServerError, "GetCommit", err)
183183
return
184184
}
185-
} else if len(opt.OldBranchName) > 0 {
186-
if ctx.Repo.GitRepo.IsBranchExist(opt.OldBranchName) {
187-
oldCommit, err = ctx.Repo.GitRepo.GetBranchCommit(opt.OldBranchName)
185+
} else if len(opt.OldBranchName) > 0 { //nolint
186+
if ctx.Repo.GitRepo.IsBranchExist(opt.OldBranchName) { //nolint
187+
oldCommit, err = ctx.Repo.GitRepo.GetBranchCommit(opt.OldBranchName) //nolint
188188
if err != nil {
189189
ctx.Error(http.StatusInternalServerError, "GetBranchCommit", err)
190190
return

0 commit comments

Comments
 (0)