From d6987ee05be8b5da279e530cfd65512cb903c72b Mon Sep 17 00:00:00 2001 From: Atin <61903527+atin@users.noreply.github.com> Date: Wed, 19 May 2021 10:42:09 +0530 Subject: chore: fix typos in code comments (#6556) --- internal/db/repo_branch.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/db/repo_branch.go') diff --git a/internal/db/repo_branch.go b/internal/db/repo_branch.go index 3b7f9137..22c15b69 100644 --- a/internal/db/repo_branch.go +++ b/internal/db/repo_branch.go @@ -111,7 +111,7 @@ type ProtectBranch struct { WhitelistTeamIDs string `xorm:"TEXT"` } -// GetProtectBranchOfRepoByName returns *ProtectBranch by branch name in given repostiory. +// GetProtectBranchOfRepoByName returns *ProtectBranch by branch name in given repository. func GetProtectBranchOfRepoByName(repoID int64, name string) (*ProtectBranch, error) { protectBranch := &ProtectBranch{ RepoID: repoID, @@ -271,7 +271,7 @@ func UpdateOrgProtectBranch(repo *Repository, protectBranch *ProtectBranch, whit return sess.Commit() } -// GetProtectBranchesByRepoID returns a list of *ProtectBranch in given repostiory. +// GetProtectBranchesByRepoID returns a list of *ProtectBranch in given repository. func GetProtectBranchesByRepoID(repoID int64) ([]*ProtectBranch, error) { protectBranches := make([]*ProtectBranch, 0, 2) return protectBranches, x.Where("repo_id = ? and protected = ?", repoID, true).Asc("name").Find(&protectBranches) -- cgit v1.2.3