PERFORMANCE: remove redundant return call

Fixes #7902
This commit is contained in:
Armin 2017-08-04 07:58:12 +02:00 committed by Armin Braun
parent c39502af99
commit 30e7adfdae

View file

@ -44,12 +44,11 @@ module LogStash
clock.stop
# There is no guarantee in the context of filter
# that EVENTS_INT == EVENTS_OUT, see the aggregates and
# that EVENTS_IN == EVENTS_OUT, see the aggregates and
# the split filter
c = new_events.count { |event| !event.cancelled? }
@metric_events.increment(:out, c) if c > 0
return new_events
new_events
end
private