mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Fix typos in models/ and modules/ (#1248)
This commit is contained in:
		@@ -57,7 +57,7 @@ func GetProtectedBranchBy(repoID int64, BranchName string) (*ProtectedBranch, er
 | 
			
		||||
	return rel, nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// GetProtectedBranches get all protected btanches
 | 
			
		||||
// GetProtectedBranches get all protected branches
 | 
			
		||||
func (repo *Repository) GetProtectedBranches() ([]*ProtectedBranch, error) {
 | 
			
		||||
	protectedBranches := make([]*ProtectedBranch, 0)
 | 
			
		||||
	return protectedBranches, x.Find(&protectedBranches, &ProtectedBranch{RepoID: repo.ID})
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user