Change nil check to use nil? instead of == per Mike Lewis' suggestion

This commit is contained in:
Ryan Ausanka-Crues 2011-01-25 14:07:54 -08:00
parent 911fa4912d
commit 8239656efc

View file

@ -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|