From e0df157f70936873b4064af152009e7421d8ae18 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Fri, 25 Aug 2023 16:30:37 +0200 Subject: [PATCH] Remove unnecessary assignment to the blank identifier Signed-off-by: Evan Lezar --- internal/modifier/csv.go | 2 +- internal/modifier/gds.go | 2 +- internal/modifier/mofed.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/modifier/csv.go b/internal/modifier/csv.go index 22688e20..53579268 100644 --- a/internal/modifier/csv.go +++ b/internal/modifier/csv.go @@ -55,7 +55,7 @@ func NewCSVModifier(logger logger.Interface, cfg *config.Config, image image.CUD return nil, fmt.Errorf("failed to get list of CSV files: %v", err) } - if nvidiaRequireJetpack, _ := image[nvidiaRequireJetpackEnvvar]; nvidiaRequireJetpack != "csv-mounts=all" { + if nvidiaRequireJetpack := image[nvidiaRequireJetpackEnvvar]; nvidiaRequireJetpack != "csv-mounts=all" { csvFiles = csv.BaseFilesOnly(csvFiles) } diff --git a/internal/modifier/gds.go b/internal/modifier/gds.go index 9ef15992..510051ab 100644 --- a/internal/modifier/gds.go +++ b/internal/modifier/gds.go @@ -38,7 +38,7 @@ func NewGDSModifier(logger logger.Interface, cfg *config.Config, image image.CUD return nil, nil } - if gds, _ := image[nvidiaGDSEnvvar]; gds != "enabled" { + if gds := image[nvidiaGDSEnvvar]; gds != "enabled" { return nil, nil } diff --git a/internal/modifier/mofed.go b/internal/modifier/mofed.go index 5cc69169..505c2db0 100644 --- a/internal/modifier/mofed.go +++ b/internal/modifier/mofed.go @@ -38,7 +38,7 @@ func NewMOFEDModifier(logger logger.Interface, cfg *config.Config, image image.C return nil, nil } - if mofed, _ := image[nvidiaMOFEDEnvvar]; mofed != "enabled" { + if mofed := image[nvidiaMOFEDEnvvar]; mofed != "enabled" { return nil, nil }