From 59c3113739648d305a56aa769bbf9248ebcdd939 Mon Sep 17 00:00:00 2001 From: Kit Patella Date: Mon, 30 Sep 2024 14:10:33 -0700 Subject: [PATCH] review comment Signed-off-by: Kit Patella --- src/pkg/packager/deploy.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pkg/packager/deploy.go b/src/pkg/packager/deploy.go index 5aba0ffc1e..54b74f9727 100644 --- a/src/pkg/packager/deploy.go +++ b/src/pkg/packager/deploy.go @@ -470,9 +470,9 @@ func (p *Packager) processComponentFiles(component v1alpha1.ZarfComponent, pkgLo // Copy the file to the destination spinner.Updatef("Saving %s", file.Target) - err2 := helpers.CreatePathAndCopy(fileLocation, file.Target) - if err2 != nil { - return fmt.Errorf("unable to copy file %s to %s: %w", fileLocation, file.Target, err2) + err = helpers.CreatePathAndCopy(fileLocation, file.Target) + if err != nil { + return fmt.Errorf("unable to copy file %s to %s: %w", fileLocation, file.Target, err) } // Loop over all symlinks and create them