Skip to content

Commit 4e5d16f

Browse files
committed
move const
1 parent 54170e9 commit 4e5d16f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/context/context.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ import (
4545
"golang.org/x/crypto/pbkdf2"
4646
)
4747

48+
const CookieNameFlash = "gitea_flash"
49+
4850
// Render represents a template render
4951
type Render interface {
5052
TemplateLookup(tmpl string) (*template.Template, error)
@@ -677,8 +679,6 @@ func getCsrfOpts() CsrfOptions {
677679
}
678680
}
679681

680-
const CookieNameFlash = "gitea_flash"
681-
682682
// Contexter initializes a classic context for a request.
683683
func Contexter(ctx context.Context) func(next http.Handler) http.Handler {
684684
_, rnd := templates.HTMLRenderer(ctx)

0 commit comments

Comments
 (0)