Skip to content

Commit

Permalink
removed redundant nil check
Browse files Browse the repository at this point in the history
  • Loading branch information
val06 committed Mar 5, 2025
1 parent 9698b67 commit 98a6961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comp/metadata/hostgpu/impl/hostgpu.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 98a6961

Please sign in to comment.