refactor: clean code
This commit is contained in:
9
internal/pkg/vendors/cachefly-sdk/api.go
vendored
9
internal/pkg/vendors/cachefly-sdk/api.go
vendored
@@ -5,10 +5,7 @@ import (
|
||||
)
|
||||
|
||||
func (c *Client) CreateCertificate(req *CreateCertificateRequest) (*CreateCertificateResponse, error) {
|
||||
resp := CreateCertificateResponse{}
|
||||
err := c.sendRequestWithResult(http.MethodPost, "/certificates", req, &resp)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &resp, nil
|
||||
resp := &CreateCertificateResponse{}
|
||||
err := c.sendRequestWithResult(http.MethodPost, "/certificates", req, resp)
|
||||
return resp, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user