mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-25 22:32:41 +01:00
routers: Minor code cleanup in UsernameSubRoute
The `reloadParam` function already calls `context.UserAssignmentWeb` with the same parameters, there's no need to do it again. Change cherry picked from gitea#29751. Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
This commit is contained in:
parent
65f9319c8f
commit
921d1283ed
1 changed files with 0 additions and 1 deletions
|
@ -743,7 +743,6 @@ func UsernameSubRoute(ctx *context.Context) {
|
|||
return
|
||||
}
|
||||
if reloadParam(".rss") {
|
||||
context.UserAssignmentWeb()(ctx)
|
||||
feed.ShowUserFeedRSS(ctx)
|
||||
}
|
||||
case strings.HasSuffix(username, ".atom"):
|
||||
|
|
Loading…
Reference in a new issue