summaryrefslogtreecommitdiffstats
path: root/cmd/web.go
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-08-13 00:30:16 +0800
committerGitHub <noreply@github.com>2023-08-12 16:30:16 +0000
commitc28e29fd94032aa2804b57512115cd9c5fe76398 (patch)
tree3f04a87f807eb094e003c2c8026a077301edb423 /cmd/web.go
parentbcccf4c0d6149e5e7382226a191abd54848f9416 (diff)
downloadgitea-c28e29fd94032aa2804b57512115cd9c5fe76398.tar.gz
gitea-c28e29fd94032aa2804b57512115cd9c5fe76398.zip
Refactor tests (#26464)
1. Give the global variable clear names 2. Use generic parameter for `onGiteaRun`
Diffstat (limited to 'cmd/web.go')
-rw-r--r--cmd/web.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/web.go b/cmd/web.go
index b69769ec43..01386251be 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -208,8 +208,8 @@ func serveInstalled(ctx *cli.Context) error {
}
// Set up Chi routes
- c := routers.NormalRoutes()
- err := listen(c, true)
+ webRoutes := routers.NormalRoutes()
+ err := listen(webRoutes, true)
<-graceful.GetManager().Done()
log.Info("PID: %d Gitea Web Finished", os.Getpid())
log.GetManager().Close()