From b488923394db583796ea64ced6dc811397b1c043 Mon Sep 17 00:00:00 2001 From: Blallo Date: Wed, 9 Jan 2019 16:55:58 +0100 Subject: [PATCH] Fix typo and more meaningful var name. --- filtering/filter.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/filtering/filter.go b/filtering/filter.go index 24291cc..10889b7 100644 --- a/filtering/filter.go +++ b/filtering/filter.go @@ -39,12 +39,12 @@ func (e *ExprValue) Set(value string) error { return nil } -// Validate answers the question wether to include a log line or not. -func (e *ExprValue) Validate(lineInput map[string]interface{}) bool { +// Validate answers the question whether to include a log line or not. +func (e *ExprValue) Validate(logLine map[string]interface{}) bool { if e.node == nil { return true } - line := translateMap(lineInput) + line := translateMap(logLine) context := datasource.NewContextSimpleNative(line) val, ok := vm.Eval(context, e.node) if !ok || val == nil { // errors when evaluating