Fix typos in models/ and modules/ (#1248)

This commit is contained in:
Ethan Koenig 2017-03-14 20:52:01 -04:00 committed by Lunny Xiao
parent ec0ae5d50c
commit 021904e4e6
26 changed files with 63 additions and 63 deletions

View file

@ -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})