Skip to content

Commit 551b500

Browse files
committed
refactor
1 parent bfd2c33 commit 551b500

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

routers/admin/admin.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,7 @@ func Config(ctx *context.Context) {
211211
ctx.Data["DisableRouterLog"] = setting.DisableRouterLog
212212
ctx.Data["RunUser"] = setting.RunUser
213213
ctx.Data["RunMode"] = strings.Title(macaron.Env)
214-
ver, _ := git.BinVersion()
215-
ctx.Data["GitVersion"] = ver
214+
ctx.Data["GitVersion"], _ = git.BinVersion()
216215
ctx.Data["RepoRootPath"] = setting.RepoRootPath
217216
ctx.Data["CustomRootPath"] = setting.CustomPath
218217
ctx.Data["StaticRootPath"] = setting.StaticRootPath

0 commit comments

Comments
 (0)