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:
@@ -64,7 +64,7 @@ func (s *SSPI) Init() error {
|
||||
Funcs: templates.NewFuncMap(),
|
||||
Asset: templates.GetAsset,
|
||||
AssetNames: templates.GetAssetNames,
|
||||
IsDevelopment: !setting.IsProd(),
|
||||
IsDevelopment: !setting.IsProd,
|
||||
})
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user