mirror of
https://github.com/gogs/gogs.git
synced 2025-05-27 17:52:21 +00:00
repo_branch: fix inapproriate logic
This commit is contained in:
parent
b3757e424f
commit
9ace35ee8b
@ -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…
x
Reference in New Issue
Block a user