ShiningRush commented on a change in pull request #1064:
URL: https://github.com/apache/apisix-dashboard/pull/1064#discussion_r548443528



##########
File path: api/internal/handler/ssl/ssl.go
##########
@@ -86,7 +86,11 @@ func (h *Handler) Get(c droplet.Context) (interface{}, 
error) {
        }
 
        //format respond
-       ssl := ret.(*entity.SSL)
+       ssl := &entity.SSL{}

Review comment:
       I think it is fine to use `var := &object{}`,and  it is used in many 
open-source projects.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to