From 3a1b4defe21895cc0a53688f4c4c8604662d33a9 Mon Sep 17 00:00:00 2001 From: Kavindu Dodanduwa Date: Fri, 22 Nov 2024 11:50:57 -0800 Subject: [PATCH] fix lint - ignore ok values as we know the stored value type Signed-off-by: Kavindu Dodanduwa --- x-pack/filebeat/input/awss3/metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/filebeat/input/awss3/metrics.go b/x-pack/filebeat/input/awss3/metrics.go index fe519a862c92..74ac2d14a9a2 100644 --- a/x-pack/filebeat/input/awss3/metrics.go +++ b/x-pack/filebeat/input/awss3/metrics.go @@ -36,7 +36,7 @@ func init() { // currentTime returns the current time. This exists to allow unit tests // simulate the passage of time. func currentTime() time.Time { - clock := clockValue.Load().(clock) + clock, _ := clockValue.Load().(clock) return clock.Now() }