From caf09cb4a9c4f6b1a0769a9b2148c54edd1c8af8 Mon Sep 17 00:00:00 2001 From: kruskall <99559985+kruskall@users.noreply.github.com> Date: Sat, 28 Sep 2024 12:22:59 +0200 Subject: [PATCH] fix(auditbeat): eventreader compile error on unsupported system (#41035) NewEventReader should return two values --- auditbeat/module/file_integrity/eventreader_unsupported.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auditbeat/module/file_integrity/eventreader_unsupported.go b/auditbeat/module/file_integrity/eventreader_unsupported.go index d039cc1bfe0..e83489fb4fc 100644 --- a/auditbeat/module/file_integrity/eventreader_unsupported.go +++ b/auditbeat/module/file_integrity/eventreader_unsupported.go @@ -26,5 +26,5 @@ import ( ) func NewEventReader(c Config, logger *logp.Logger) (EventProducer, error) { - return errors.New("file auditing metricset is not implemented on this system") + return nil, errors.New("file auditing metricset is not implemented on this system") }