aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2021-10-20 22:37:19 +0800
committerGitHub <noreply@github.com>2021-10-20 16:37:19 +0200
commitf494776931b71f83fdfdd4e68e850529c4b2614f (patch)
tree92b3779237dadfe042d3f93e9ddaaaac5d6d385f /cmd
parent0208ea0248782a994771cadf0af6a4125fdde723 (diff)
downloadgitea-f494776931b71f83fdfdd4e68e850529c4b2614f.tar.gz
gitea-f494776931b71f83fdfdd4e68e850529c4b2614f.zip
Use a variable but a function for IsProd because of a slight performance increment (#17368)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/serv.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/serv.go b/cmd/serv.go
index 2173a3a38b..13c27f1ac0 100644
--- a/cmd/serv.go
+++ b/cmd/serv.go
@@ -80,7 +80,7 @@ func fail(userMessage, logMessage string, args ...interface{}) error {
fmt.Fprintln(os.Stderr, "Gitea:", userMessage)
if len(logMessage) > 0 {
- if !setting.IsProd() {
+ if !setting.IsProd {
fmt.Fprintf(os.Stderr, logMessage+"\n", args...)
}
}