Переглянути джерело

Merge branch 'master' of github.com:gogits/gogs into develop

Unknwon 8 роки тому
батько
коміт
b0169ba064
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 {
 			return fmt.Errorf("Insert: %v", err)
 		}
-		return
 	}
 
 	if _, err = sess.Id(protectBranch.ID).AllCols().Update(protectBranch); err != nil {