From 98a6961eefdaab784d4e4c1058e70eef43c2f8c9 Mon Sep 17 00:00:00 2001 From: Valeri Pliskin Date: Wed, 5 Mar 2025 17:24:36 +0000 Subject: [PATCH] removed redundant nil check --- comp/metadata/hostgpu/impl/hostgpu.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comp/metadata/hostgpu/impl/hostgpu.go b/comp/metadata/hostgpu/impl/hostgpu.go index ac64eb296a160..75921dd1bfff9 100644 --- a/comp/metadata/hostgpu/impl/hostgpu.go +++ b/comp/metadata/hostgpu/impl/hostgpu.go @@ -152,7 +152,7 @@ func (gh *gpuHost) fillData() { func (gh *gpuHost) getPayload() marshaler.JSONMarshaler { gh.fillData() - if gh.data == nil || len(gh.data.Devices) == 0 { + if len(gh.data.Devices) == 0 { return nil }