style: consolidate for loops

Signed-off-by: Jesse Simpson <jesse.simpson36@gmail.com>
pull/13586/head
Jesse Simpson 9 months ago
parent 1357db4db1
commit f09bbb8ab8
No known key found for this signature in database
GPG Key ID: 237495C89AB0AAFC

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

Loading…
Cancel
Save