style: consolidate for loops

Signed-off-by: Jesse Simpson <jesse.simpson36@gmail.com>
This commit is contained in:
Jesse Simpson 2024-12-23 16:19:16 -05:00
parent 1357db4db1
commit f09bbb8ab8
No known key found for this signature in database
GPG key ID: 237495C89AB0AAFC

View file

@ -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
}