Fix ineffectual assignment

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2023-05-23 21:14:02 +02:00
parent 3be16d8077
commit 013a1b413b

View File

@ -81,6 +81,9 @@ func NewCSVModifier(logger *logrus.Logger, cfg *config.Config, ociSpec oci.Spec)
tegra.WithNVIDIACTKPath(cfg.NVIDIACTKConfig.Path), tegra.WithNVIDIACTKPath(cfg.NVIDIACTKConfig.Path),
tegra.WithCSVFiles(csvFiles), tegra.WithCSVFiles(csvFiles),
) )
if err != nil {
return nil, fmt.Errorf("failed to construct discoverer: %v", err)
}
discoverModifier, err := NewModifierFromDiscoverer(logger, d) discoverModifier, err := NewModifierFromDiscoverer(logger, d)
if err != nil { if err != nil {