1
0
Fork 0
forked from forgejo/forgejo

Golint fixed for modules/context

This commit is contained in:
Lunny Xiao 2016-11-25 14:51:01 +08:00
parent 6a28909f40
commit faabc76fd6
7 changed files with 20 additions and 3 deletions

View file

@ -13,6 +13,7 @@ import (
macaron "gopkg.in/macaron.v1"
)
// ToggleOptions contains required or check options
type ToggleOptions struct {
SignInRequired bool
SignOutRequired bool
@ -20,6 +21,7 @@ type ToggleOptions struct {
DisableCSRF bool
}
// Toggle returns toggle options as middleware
func Toggle(options *ToggleOptions) macaron.Handler {
return func(ctx *Context) {
// Cannot view any page before installation.