Skip to content

Commit

Permalink
fix: save to fileLocation rather than fileLocations[i] which gets ove…
Browse files Browse the repository at this point in the history
…rwritten
  • Loading branch information
jessesimpson36 committed Dec 23, 2024
1 parent 724ecb6 commit 19041d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 19041d7

Please sign in to comment.