diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-10-20 22:37:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-20 16:37:19 +0200 |
commit | f494776931b71f83fdfdd4e68e850529c4b2614f (patch) | |
tree | 92b3779237dadfe042d3f93e9ddaaaac5d6d385f /services | |
parent | 0208ea0248782a994771cadf0af6a4125fdde723 (diff) | |
download | gitea-f494776931b71f83fdfdd4e68e850529c4b2614f.tar.gz gitea-f494776931b71f83fdfdd4e68e850529c4b2614f.zip |
Use a variable but a function for IsProd because of a slight performance increment (#17368)
Diffstat (limited to 'services')
-rw-r--r-- | services/auth/sspi_windows.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/auth/sspi_windows.go b/services/auth/sspi_windows.go index 346e943988..821a3df459 100644 --- a/services/auth/sspi_windows.go +++ b/services/auth/sspi_windows.go @@ -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 } |