Address ineffectual assignment error

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2021-07-01 16:13:22 +02:00
parent 22ee5eb64f
commit 46cdf8c41a
2 changed files with 5 additions and 1 deletions

View File

@ -58,7 +58,7 @@ $(EXAMPLE_TARGETS): example-%:
GOOS=$(GOOS) go build ./examples/$(*)
all: check test build binary
check: assert-fmt lint vet
check: $(CHECK_TARGETS)
# Apply go fmt to the codebase
fmt:

View File

@ -28,6 +28,10 @@ func main() {
log.Infof("Starting device discovery with NVML")
d, err := discover.NewNVMLServer("")
if err != nil {
log.Errorf("Error creating NVML Server: %v", err)
return
}
devices, err := d.Devices()
if err != nil {