From 437223d16338e8f50160f480399140f1633e08ce Mon Sep 17 00:00:00 2001 From: Sebastien Blot Date: Fri, 8 Nov 2024 11:36:52 +0100 Subject: [PATCH] lint --- pkg/acquisition/modules/loki/loki.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/acquisition/modules/loki/loki.go b/pkg/acquisition/modules/loki/loki.go index deb1a9c3dcd..c57e6a67c94 100644 --- a/pkg/acquisition/modules/loki/loki.go +++ b/pkg/acquisition/modules/loki/loki.go @@ -344,7 +344,7 @@ func (l *LokiSource) StreamingAcquisition(ctx context.Context, out chan types.Ev case resp, ok := <-respChan: if !ok { ll.Warnf("loki channel closed") - return fmt.Errorf("loki channel closed") + return errors.New("loki channel closed") } for _, stream := range resp.Data.Result { for _, entry := range stream.Entries {