summaryrefslogtreecommitdiffstats
path: root/modules/web/middleware
diff options
context:
space:
mode:
Diffstat (limited to 'modules/web/middleware')
-rw-r--r--modules/web/middleware/flash.go6
-rw-r--r--modules/web/middleware/locale.go2
2 files changed, 3 insertions, 5 deletions
diff --git a/modules/web/middleware/flash.go b/modules/web/middleware/flash.go
index cd9b089b94..d1d4a864e3 100644
--- a/modules/web/middleware/flash.go
+++ b/modules/web/middleware/flash.go
@@ -14,10 +14,8 @@ const (
InfoFlash = "InfoMsg"
)
-var (
- // FlashNow FIXME:
- FlashNow bool
-)
+// FlashNow FIXME:
+var FlashNow bool
// Flash represents a one time data transfer between two requests.
type Flash struct {
diff --git a/modules/web/middleware/locale.go b/modules/web/middleware/locale.go
index ede38ef933..3daf5f32d4 100644
--- a/modules/web/middleware/locale.go
+++ b/modules/web/middleware/locale.go
@@ -18,7 +18,7 @@ import (
func Locale(resp http.ResponseWriter, req *http.Request) translation.Locale {
// 1. Check URL arguments.
lang := req.URL.Query().Get("lang")
- var changeLang = lang != ""
+ changeLang := lang != ""
// 2. Get language information from cookies.
if len(lang) == 0 {