mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Rename ctx.Form() to ctx.FormString() and move code into own file (#16571)
Followup from #16562 prepare for #16567 * Rename ctx.Form() to ctx.FormString() * Reimplement FormX func to need less code and cpu cycles * Move code into own file
This commit is contained in:
		@@ -78,7 +78,7 @@ func ListDeployKeys(ctx *context.APIContext) {
 | 
			
		||||
	var keys []*models.DeployKey
 | 
			
		||||
	var err error
 | 
			
		||||
 | 
			
		||||
	fingerprint := ctx.Form("fingerprint")
 | 
			
		||||
	fingerprint := ctx.FormString("fingerprint")
 | 
			
		||||
	keyID := ctx.FormInt64("key_id")
 | 
			
		||||
	if fingerprint != "" || keyID != 0 {
 | 
			
		||||
		keys, err = models.SearchDeployKeys(ctx.Repo.Repository.ID, keyID, fingerprint)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user