Settings: Rename constants/variables to follow Go naming standards (#28002)

* settings: Rename constants/variables to follow Go naming standards
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
Arve Knudsen
2020-10-02 15:45:45 +02:00
committed by GitHub
parent a5e12f653d
commit a078e40238
23 changed files with 62 additions and 62 deletions
+3 -3
View File
@@ -25,7 +25,7 @@ type ReqContext struct {
func (ctx *ReqContext) Handle(status int, title string, err error) {
if err != nil {
ctx.Logger.Error(title, "error", err)
if setting.Env != setting.PROD {
if setting.Env != setting.Prod {
ctx.Data["ErrorMsg"] = err
}
}
@@ -34,7 +34,7 @@ func (ctx *ReqContext) Handle(status int, title string, err error) {
ctx.Data["AppSubUrl"] = setting.AppSubUrl
ctx.Data["Theme"] = "dark"
ctx.HTML(status, setting.ERR_TEMPLATE_NAME)
ctx.HTML(status, setting.ErrTemplateName)
}
func (ctx *ReqContext) JsonOK(message string) {
@@ -52,7 +52,7 @@ func (ctx *ReqContext) JsonApiErr(status int, message string, err error) {
if err != nil {
ctx.Logger.Error(message, "error", err)
if setting.Env != setting.PROD {
if setting.Env != setting.Prod {
resp["error"] = err.Error()
}
}