From d121b68b595829bd3cf4f77767ac08c98a0bfd20 Mon Sep 17 00:00:00 2001 From: Tiago Queiroz Date: Thu, 25 Apr 2024 15:06:31 -0400 Subject: [PATCH] Implement PR review suggestions --- x-pack/filebeat/input/cel/input.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/filebeat/input/cel/input.go b/x-pack/filebeat/input/cel/input.go index f741d0c2d4a..9ca1afc1a8b 100644 --- a/x-pack/filebeat/input/cel/input.go +++ b/x-pack/filebeat/input/cel/input.go @@ -1160,7 +1160,7 @@ func cloneMap(dst, src mapstr.M) { // walkMap walks to all ends of the provided path in m and applies fn to the // final element of each walk. Nested arrays are not handled. func walkMap(m mapstr.M, path string, fn func(parent mapstr.M, key string)) { - key, rest, more := strings.Cut(path, ".") + key, rest, more := strings.Cut(path, ".") //nolint:typecheck // reset is used in recursive calls. v, ok := m[key] if !ok { return