Skip to content

Commit

Permalink
Use method to append redactors
Browse files Browse the repository at this point in the history
  • Loading branch information
triarius committed Mar 6, 2024
1 parent dc69b3f commit 1523f58
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/job/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -1121,9 +1121,7 @@ func (e *Executor) setupRedactors() func(*Executor) {
currentRedactors = append(currentRedactors, rdc)
}

for _, rdc := range currentRedactors {
e.redactors[rdc] = struct{}{}
}
e.redactors.Append(currentRedactors...)

return func(e *Executor) {
if err := e.redactors.Remove(currentRedactors...); err != nil && e.Debug {
Expand Down

0 comments on commit 1523f58

Please sign in to comment.