Remove unnecessary assignment to the blank identifier

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2023-08-25 16:30:37 +02:00
parent f2c9937ca8
commit e0df157f70
3 changed files with 3 additions and 3 deletions

View File

@ -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) 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) csvFiles = csv.BaseFilesOnly(csvFiles)
} }

View File

@ -38,7 +38,7 @@ func NewGDSModifier(logger logger.Interface, cfg *config.Config, image image.CUD
return nil, nil return nil, nil
} }
if gds, _ := image[nvidiaGDSEnvvar]; gds != "enabled" { if gds := image[nvidiaGDSEnvvar]; gds != "enabled" {
return nil, nil return nil, nil
} }

View File

@ -38,7 +38,7 @@ func NewMOFEDModifier(logger logger.Interface, cfg *config.Config, image image.C
return nil, nil return nil, nil
} }
if mofed, _ := image[nvidiaMOFEDEnvvar]; mofed != "enabled" { if mofed := image[nvidiaMOFEDEnvvar]; mofed != "enabled" {
return nil, nil return nil, nil
} }