Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zliang-akamai committed Jan 7, 2025
1 parent cf499ea commit e73fbf0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion object_storage_bucket_certs.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (c *Client) UploadObjectStorageBucketCertV2(ctx context.Context, clusterOrR
return doPOSTRequest[ObjectStorageBucketCertV2](ctx, c, e, opts)
}

// GetObjectStorageBucketCert gets an ObjectStorageBucketCert
// GetObjectStorageBucketCertV2 gets an ObjectStorageBucketCert
func (c *Client) GetObjectStorageBucketCertV2(ctx context.Context, clusterOrRegionID, bucket string) (*ObjectStorageBucketCertV2, error) {
e := formatAPIPath("object-storage/buckets/%s/%s/ssl", clusterOrRegionID, bucket)
return doGETRequest[ObjectStorageBucketCertV2](ctx, c, e)
Expand Down
7 changes: 1 addition & 6 deletions object_storage_endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,5 @@ type ObjectStorageEndpoint struct {

// ListObjectStorageEndpoints lists all endpoints in all regions
func (c *Client) ListObjectStorageEndpoints(ctx context.Context, opts *ListOptions) ([]ObjectStorageEndpoint, error) {
response, err := getPaginatedResults[ObjectStorageEndpoint](ctx, c, "object-storage/endpoints", opts)
if err != nil {
return nil, err
}

return response, nil
return getPaginatedResults[ObjectStorageEndpoint](ctx, c, "object-storage/endpoints", opts)
}

0 comments on commit e73fbf0

Please sign in to comment.