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/user.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/db/user.go') diff --git a/internal/db/user.go b/internal/db/user.go index 0e3c106e..3ebaabff 100644 --- a/internal/db/user.go +++ b/internal/db/user.go @@ -283,7 +283,7 @@ func (u *User) AvatarLink() string { return link } -// User.GetFollwoers returns range of user's followers. +// User.GetFollowers returns range of user's followers. func (u *User) GetFollowers(page int) ([]*User, error) { users := make([]*User, 0, ItemsPerPage) sess := x.Limit(ItemsPerPage, (page-1)*ItemsPerPage).Where("follow.follow_id=?", u.ID) @@ -468,7 +468,7 @@ func (u *User) ShortName(length int) string { return tool.EllipsisString(u.Name, length) } -// IsMailable checks if a user is elegible +// IsMailable checks if a user is eligible // to receive emails. func (u *User) IsMailable() bool { return u.IsActive @@ -1002,7 +1002,7 @@ type UserCommit struct { *git.Commit } -// ValidateCommitWithEmail chceck if author's e-mail of commit is corresponsind to a user. +// ValidateCommitWithEmail checks if author's e-mail of commit is corresponding to a user. func ValidateCommitWithEmail(c *git.Commit) *User { u, err := GetUserByEmail(c.Author.Email) if err != nil { -- cgit v1.2.3