diff --git a/object_storage_bucket_certs.go b/object_storage_bucket_certs.go index 9c07b2354..249ce590c 100644 --- a/object_storage_bucket_certs.go +++ b/object_storage_bucket_certs.go @@ -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) diff --git a/object_storage_endpoints.go b/object_storage_endpoints.go index 3d5d9c616..635091948 100644 --- a/object_storage_endpoints.go +++ b/object_storage_endpoints.go @@ -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) }