We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fc95f2 commit 1c4fc9eCopy full SHA for 1c4fc9e
routers/api/v1/repo/branch.go
@@ -182,9 +182,9 @@ func CreateBranch(ctx *context.APIContext) {
182
ctx.Error(http.StatusInternalServerError, "GetCommit", err)
183
return
184
}
185
- } else if len(opt.OldBranchName) > 0 {
186
- if ctx.Repo.GitRepo.IsBranchExist(opt.OldBranchName) {
187
- oldCommit, err = ctx.Repo.GitRepo.GetBranchCommit(opt.OldBranchName)
+ } else if len(opt.OldBranchName) > 0 { //nolint
+ if ctx.Repo.GitRepo.IsBranchExist(opt.OldBranchName) { //nolint
+ oldCommit, err = ctx.Repo.GitRepo.GetBranchCommit(opt.OldBranchName) //nolint
188
if err != nil {
189
ctx.Error(http.StatusInternalServerError, "GetBranchCommit", err)
190
0 commit comments