Skip to content

Commit

Permalink
fix: remove b=nil setting which does not do anything
Browse files Browse the repository at this point in the history
Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
  • Loading branch information
szuecs committed Jan 5, 2024
1 parent 5216a25 commit c91e34e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion filters/block/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ func blockMatcher(m metrics.Metrics, matches []toBlockKeys) func(b []byte) (int,
for _, s := range matches {
s := s
if bytes.Contains(b, s.Str) {
b = nil
m.IncCounter("blocked.requests")
return 0, io.ErrBlocked
}
Expand Down

0 comments on commit c91e34e

Please sign in to comment.