mirror of
https://github.com/go-gitea/gitea
synced 2025-07-23 02:38:35 +00:00
Use a variable but a function for IsProd because of a slight performance increment (#17368)
This commit is contained in:
@@ -477,7 +477,7 @@ func RegisterRoutes(m *web.Route) {
|
||||
m.Post("/action/{action}", user.Action)
|
||||
}, reqSignIn)
|
||||
|
||||
if !setting.IsProd() {
|
||||
if !setting.IsProd {
|
||||
m.Get("/template/*", dev.TemplatePreview)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user