Skip to content

Commit cd6bc59

Browse files
committed
Remove unneeded comments
1 parent f576e02 commit cd6bc59

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

host/pkg/hostmgr/southbound_handler.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,6 @@ func hostDeviceToAddOrUpdate(ctx context.Context, tenantID string, update bool,
162162
}
163163

164164
// Helper function to reduce cyclomatic complexity.
165-
//
166-
//nolint:dupl // Protobuf oneOf-driven separation
167165
func hostDeviceToRemove(ctx context.Context, tenantID string, invDevice *computev1.HostdeviceResource,
168166
) error {
169167
zlog.Debug().Msgf("Delete host device: tenantID=%s, hostDevice=%v", tenantID, invDevice)
@@ -174,8 +172,6 @@ func hostDeviceToRemove(ctx context.Context, tenantID string, invDevice *compute
174172
}
175173

176174
// This function updates Host device resources in Inventory if needed.
177-
//
178-
//nolint:dupl // Protobuf oneOf-driven separation
179175
func updateHostdevice(ctx context.Context, tenantID string, hostRes *computev1.HostResource, deviceInfo *pb.DeviceInfo) error {
180176
// Devices are always eager loaded. No need to query Inventory again
181177
invDevice := hostRes.GetHostDevice()

host/pkg/invclient/invclient.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,8 +470,6 @@ func CreateHostdevice(
470470

471471
// UpdateHostdevice updates an existing Hostdevice resource info in Inventory,
472472
// except state and other fields are not allowed from RM.
473-
//
474-
//nolint:dupl // Protobuf oneOf-driven separation
475473
func UpdateHostdevice(ctx context.Context, c inv_client.TenantAwareInventoryClient, tenantID string,
476474
hostDevice *computev1.HostdeviceResource,
477475
) error {

0 commit comments

Comments
 (0)