mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Add missing return for when topic isn't found (#20351)
Add missing return to DeleteTopic API when the topic is not found.
This commit is contained in:
		| @@ -240,6 +240,7 @@ func DeleteTopic(ctx *context.APIContext) { | |||||||
|  |  | ||||||
| 	if topic == nil { | 	if topic == nil { | ||||||
| 		ctx.NotFound() | 		ctx.NotFound() | ||||||
|  | 		return | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	ctx.Status(http.StatusNoContent) | 	ctx.Status(http.StatusNoContent) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user