From 455ccab8578b06e6dddfcf8690aabb5bacc6d34b Mon Sep 17 00:00:00 2001 From: Dylan Haussermann Date: Tue, 10 Sep 2024 14:10:17 -0400 Subject: [PATCH] Implement missed correction from Alejandro. If block must return the correct var when returning the error. Ensure this is not occuring on other lines I've added. --- cmd/ltctl/comparison.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/ltctl/comparison.go b/cmd/ltctl/comparison.go index 3201511bb..0ea6dd938 100644 --- a/cmd/ltctl/comparison.go +++ b/cmd/ltctl/comparison.go @@ -165,7 +165,7 @@ func RunComparisonCmdF(cmd *cobra.Command, args []string) error { //create the file resultsFile, errResult := os.Create(filepath.Join(outputPath, "results.txt")) if errResult != nil { - return fmt.Errorf("failed to create file: %w", err) + return fmt.Errorf("failed to create file: %w", errResult) } defer resultsFile.Close()