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
|
@ -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