mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-10-25 03:57:13 +08:00
Use a variable but a function for IsProd because of a slight performance increment (#17368)
This commit is contained in:
@ -91,7 +91,7 @@ func HTMLRenderer() *render.Render {
|
||||
Funcs: NewFuncMap(),
|
||||
Asset: GetAsset,
|
||||
AssetNames: GetAssetNames,
|
||||
IsDevelopment: !setting.IsProd(),
|
||||
IsDevelopment: !setting.IsProd,
|
||||
DisableHTTPErrorRendering: true,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user