Skip to content

Commit

Permalink
style: consolidate for loops
Browse files Browse the repository at this point in the history
  • Loading branch information
jessesimpson36 committed Dec 23, 2024
1 parent 7b120b6 commit 724ecb6
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions pkg/engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,14 +410,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
}
Expand Down

0 comments on commit 724ecb6

Please sign in to comment.