Browse Source

repo_branch: fix inapproriate logic

pull/4210/head
Unknwon 8 years ago
parent
commit
9ace35ee8b
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
  1. 1
      models/repo_branch.go

1
models/repo_branch.go

@ -125,7 +125,6 @@ func UpdateProtectBranch(protectBranch *ProtectBranch) (err error) {
if _, err = sess.Insert(protectBranch); err != nil {
return fmt.Errorf("Insert: %v", err)
}
return
}
if _, err = sess.Id(protectBranch.ID).AllCols().Update(protectBranch); err != nil {

Loading…
Cancel
Save