mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
Change nil check to use nil? instead of == per Mike Lewis' suggestion
This commit is contained in:
parent
911fa4912d
commit
8239656efc
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ class LogStash::Filters::Grep < LogStash::Filters::Base
|
|||
next
|
||||
end
|
||||
|
||||
if event[field] == nil and match["negate"] == true
|
||||
if event[field].nil? and match["negate"] == true
|
||||
match_count += 1
|
||||
end
|
||||
event[field].each do |value|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue