From 318f360252777c6eb819ab206a1f276fa4969f3a Mon Sep 17 00:00:00 2001 From: silverwind Date: Tue, 10 May 2022 23:55:54 +0200 Subject: Update go tool dependencies (#19676) * Update go tool dependencies Updated all tool dependencies to latest tags, hoping CI will like it. * fix new lint errors * handle more strings.Title cases * remove lint skip --- routers/web/admin/admin.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'routers/web') diff --git a/routers/web/admin/admin.go b/routers/web/admin/admin.go index d4093f2049..78347e67c4 100644 --- a/routers/web/admin/admin.go +++ b/routers/web/admin/admin.go @@ -26,6 +26,7 @@ import ( "code.gitea.io/gitea/modules/setting" "code.gitea.io/gitea/modules/timeutil" "code.gitea.io/gitea/modules/updatechecker" + "code.gitea.io/gitea/modules/util" "code.gitea.io/gitea/modules/web" "code.gitea.io/gitea/services/cron" "code.gitea.io/gitea/services/forms" @@ -245,7 +246,7 @@ func Config(ctx *context.Context) { ctx.Data["OfflineMode"] = setting.OfflineMode ctx.Data["DisableRouterLog"] = setting.DisableRouterLog ctx.Data["RunUser"] = setting.RunUser - ctx.Data["RunMode"] = strings.Title(setting.RunMode) + ctx.Data["RunMode"] = util.ToTitleCase(setting.RunMode) if version, err := git.LocalVersion(); err == nil { ctx.Data["GitVersion"] = version.Original() } -- cgit v1.2.3