From 46a3f73f609a177e7377dd27af2aa5d677ff6e58 Mon Sep 17 00:00:00 2001 From: anirudhwarrier <12178754+anirudhwarrier@users.noreply.github.com> Date: Tue, 26 Mar 2024 16:02:07 +0400 Subject: [PATCH] lint --- integration-tests/testconfig/automation/config.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/integration-tests/testconfig/automation/config.go b/integration-tests/testconfig/automation/config.go index 4a3d4eabe4a..5f086793395 100644 --- a/integration-tests/testconfig/automation/config.go +++ b/integration-tests/testconfig/automation/config.go @@ -101,7 +101,7 @@ type DataStreams struct { } func (c *DataStreams) Validate() error { - if *c.Enabled == true { + if c.Enabled != nil && *c.Enabled { if c.URL == nil { return errors.New("data_streams_url must be set") } @@ -114,6 +114,8 @@ func (c *DataStreams) Validate() error { if c.DefaultFeedID == nil { return errors.New("data_streams_feed_id must be set") } + } else { + *c.Enabled = false } return nil }