Browse Source

Fix typo and more meaningful var name.

Blallo 5 năm trước cách đây
mục cha
commit
b488923394
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      filtering/filter.go

+ 3 - 3
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