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:
parent
ae4c13529c
commit
b2f13f5fb1
@ -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)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user