mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-17 05:53:51 +02:00
remove unused parameter from Group.relAvatarLink method
This commit is contained in:
parent
2148a9f48d
commit
ea8e52b9ee
@ -12,7 +12,7 @@ import (
|
|||||||
func (g *Group) CustomAvatarRelativePath() string {
|
func (g *Group) CustomAvatarRelativePath() string {
|
||||||
return g.Avatar
|
return g.Avatar
|
||||||
}
|
}
|
||||||
func (g *Group) relAvatarLink(ctx context.Context) string {
|
func (g *Group) relAvatarLink() string {
|
||||||
// If no avatar - path is empty
|
// If no avatar - path is empty
|
||||||
avatarPath := g.CustomAvatarRelativePath()
|
avatarPath := g.CustomAvatarRelativePath()
|
||||||
if len(avatarPath) == 0 {
|
if len(avatarPath) == 0 {
|
||||||
@ -22,7 +22,7 @@ func (g *Group) relAvatarLink(ctx context.Context) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (g *Group) AvatarLink(ctx context.Context) string {
|
func (g *Group) AvatarLink(ctx context.Context) string {
|
||||||
relLink := g.relAvatarLink(ctx)
|
relLink := g.relAvatarLink()
|
||||||
if relLink != "" {
|
if relLink != "" {
|
||||||
return httplib.MakeAbsoluteURL(ctx, relLink)
|
return httplib.MakeAbsoluteURL(ctx, relLink)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user