From 2e3f6dce28b1c204bf99d6ba660365a0ca23adfe Mon Sep 17 00:00:00 2001 From: Jesse Simpson Date: Mon, 23 Dec 2024 16:25:18 -0500 Subject: [PATCH] fix: save to fileLocation rather than fileLocations[i] which gets overwritten Signed-off-by: Jesse Simpson --- pkg/engine/engine.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/engine/engine.go b/pkg/engine/engine.go index 6a9b49a3d..a533e3241 100644 --- a/pkg/engine/engine.go +++ b/pkg/engine/engine.go @@ -419,7 +419,7 @@ func cleanupExecError(filename string, err error) error { } for i, fileLocation := range fileLocations { - fileLocations[i] = fileLocation.FilterLocation().FilterUnnecessaryWords() + fileLocation = fileLocation.FilterLocation().FilterUnnecessaryWords() if fileLocation.message == "" { continue }