diff --git a/pkg/engine/engine.go b/pkg/engine/engine.go index 156aafcf0..6a9b49a3d 100644 --- a/pkg/engine/engine.go +++ b/pkg/engine/engine.go @@ -419,14 +419,7 @@ func cleanupExecError(filename string, err error) error { } for i, fileLocation := range fileLocations { - fileLocations[i] = fileLocation.FilterLocation() - } - - for i, fileLocation := range fileLocations { - fileLocations[i] = fileLocation.FilterUnnecessaryWords() - } - - for i, fileLocation := range fileLocations { + fileLocations[i] = fileLocation.FilterLocation().FilterUnnecessaryWords() if fileLocation.message == "" { continue }