diff --git a/pkg/engine/engine.go b/pkg/engine/engine.go index 075d3458263..91e39524f52 100644 --- a/pkg/engine/engine.go +++ b/pkg/engine/engine.go @@ -410,7 +410,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 }