Skip to content

Commit

Permalink
Implement missed correction from Alejandro. If block must return the …
Browse files Browse the repository at this point in the history
…correct var when returning the error.

Ensure this is not occuring on other lines I've added.
  • Loading branch information
DHaussermann committed Sep 10, 2024
1 parent 128ff74 commit 455ccab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/ltctl/comparison.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 455ccab

Please sign in to comment.