mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
format with gofumpt (#18184)
* gofumpt -w -l . * gofumpt -w -l -extra . * Add linter * manual fix * change make fmt
This commit is contained in:
@@ -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 {
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user