From 013a1b413b4447870cf7b8547395697f2f7ceeba Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Tue, 23 May 2023 21:14:02 +0200 Subject: [PATCH] Fix ineffectual assignment Signed-off-by: Evan Lezar --- internal/modifier/csv.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/modifier/csv.go b/internal/modifier/csv.go index aa97f728..84eb0c6d 100644 --- a/internal/modifier/csv.go +++ b/internal/modifier/csv.go @@ -81,6 +81,9 @@ func NewCSVModifier(logger *logrus.Logger, cfg *config.Config, ociSpec oci.Spec) tegra.WithNVIDIACTKPath(cfg.NVIDIACTKConfig.Path), tegra.WithCSVFiles(csvFiles), ) + if err != nil { + return nil, fmt.Errorf("failed to construct discoverer: %v", err) + } discoverModifier, err := NewModifierFromDiscoverer(logger, d) if err != nil {