mirror of
https://github.com/go-gitea/gitea.git
synced 2024-05-11 05:55:29 +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