瀏覽代碼

repo_branch: fix inapproriate logic

Unknwon 8 年之前
父節點
當前提交
9ace35ee8b
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      models/repo_branch.go

+ 0 - 1
models/repo_branch.go

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