From 921d1283ed0af4ad55746d074824d10241a23e25 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Mon, 18 Mar 2024 13:28:20 +0100 Subject: [PATCH] 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 --- routers/web/user/home.go | 1 - 1 file changed, 1 deletion(-) diff --git a/routers/web/user/home.go b/routers/web/user/home.go index 3ff4efc48..31ee0e40d 100644 --- a/routers/web/user/home.go +++ b/routers/web/user/home.go @@ -743,7 +743,6 @@ func UsernameSubRoute(ctx *context.Context) { return } if reloadParam(".rss") { - context.UserAssignmentWeb()(ctx) feed.ShowUserFeedRSS(ctx) } case strings.HasSuffix(username, ".atom"):