From 25e300afa69ce35f01e62d376a50f6115c1b6d70 Mon Sep 17 00:00:00 2001 From: Antoine Toulme Date: Sun, 7 Apr 2024 14:19:15 -0700 Subject: [PATCH] [chore] reuse constant for StrptimeKey (#32193) --- pkg/stanza/operator/helper/time.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/stanza/operator/helper/time.go b/pkg/stanza/operator/helper/time.go index f9326c73dd18..158fffc8bee7 100644 --- a/pkg/stanza/operator/helper/time.go +++ b/pkg/stanza/operator/helper/time.go @@ -31,7 +31,7 @@ const NativeKey = "native" // provided for operator development // NewTimeParser creates a new time parser with default values func NewTimeParser() TimeParser { return TimeParser{ - LayoutType: "strptime", + LayoutType: StrptimeKey, } }