0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-04-17 08:35:31 +02:00

remove unused parameter from Group.relAvatarLink method

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2025-01-09 17:04:31 -05:00
parent ae4c13529c
commit b2f13f5fb1
No known key found for this signature in database
GPG Key ID: 924A5F6AF051E87C

View File

@ -12,7 +12,7 @@ import (
func (g *Group) CustomAvatarRelativePath() string {
return g.Avatar
}
func (g *Group) relAvatarLink(ctx context.Context) string {
func (g *Group) relAvatarLink() string {
// If no avatar - path is empty
avatarPath := g.CustomAvatarRelativePath()
if len(avatarPath) == 0 {
@ -22,7 +22,7 @@ func (g *Group) relAvatarLink(ctx context.Context) string {
}
func (g *Group) AvatarLink(ctx context.Context) string {
relLink := g.relAvatarLink(ctx)
relLink := g.relAvatarLink()
if relLink != "" {
return httplib.MakeAbsoluteURL(ctx, relLink)
}