diff options
Diffstat (limited to 'modules/web/middleware/locale.go')
-rw-r--r-- | modules/web/middleware/locale.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |