From 08988d6829249d036a231a632fbf59fc6fbf7940 Mon Sep 17 00:00:00 2001 From: zhengkunwang223 <1paneldev@sina.com> Date: Tue, 18 Nov 2025 18:36:22 +0800 Subject: [PATCH] refactor: remove unused code --- agent/app/api/v2/website_ssl.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/agent/app/api/v2/website_ssl.go b/agent/app/api/v2/website_ssl.go index d2ec38695..ee0a91e97 100644 --- a/agent/app/api/v2/website_ssl.go +++ b/agent/app/api/v2/website_ssl.go @@ -235,7 +235,6 @@ func (b *BaseApi) UploadWebsiteSSL(c *gin.Context) { func (b *BaseApi) UploadSSLFile(c *gin.Context) { var req request.WebsiteSSLFileUpload - req.Type = c.PostForm("type") req.Description = c.PostForm("description") sslID := c.PostForm("sslID") if sslID != "" { @@ -279,7 +278,7 @@ func (b *BaseApi) UploadSSLFile(c *gin.Context) { return } - helper.SuccessWithData(c, nil) + helper.Success(c) } func readUploadedFile(fileHeader *multipart.FileHeader) ([]byte, error) {