mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 20:36:07 +01:00 
			
		
		
		
	enable staticcheck QFxxxx rules (#34064)
This commit is contained in:
		@@ -51,9 +51,10 @@ func ListHooks(ctx *context.APIContext) {
 | 
			
		||||
	// for compatibility the default value is true
 | 
			
		||||
	isSystemWebhook := optional.Some(true)
 | 
			
		||||
	typeValue := ctx.FormString("type")
 | 
			
		||||
	if typeValue == "default" {
 | 
			
		||||
	switch typeValue {
 | 
			
		||||
	case "default":
 | 
			
		||||
		isSystemWebhook = optional.Some(false)
 | 
			
		||||
	} else if typeValue == "all" {
 | 
			
		||||
	case "all":
 | 
			
		||||
		isSystemWebhook = optional.None[bool]()
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user