mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Golint fixed for modules/context
This commit is contained in:
		@@ -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.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user