mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00: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