From 093610e987e0401562233a23cc5a4dc6467f2cd0 Mon Sep 17 00:00:00 2001 From: Dainius Serplis Date: Tue, 4 Jul 2023 07:54:51 +0300 Subject: [PATCH] Address comment Signed-off-by: Dainius Serplis --- govcd/ip_space_allocation.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/govcd/ip_space_allocation.go b/govcd/ip_space_allocation.go index 31bfccdbb..2e8394433 100644 --- a/govcd/ip_space_allocation.go +++ b/govcd/ip_space_allocation.go @@ -190,10 +190,6 @@ func (ipSpaceAllocation *IpSpaceIpAllocation) Delete() error { } err = client.OpenApiDeleteItem(apiVersion, urlRef, nil, getTenantContextHeader(tenantContext)) - if err != nil { - return err - } - if err != nil { return fmt.Errorf("error deleting IP Space IP Allocation: %s", err) }