Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhwarrier committed Mar 26, 2024
1 parent 179ba79 commit 46a3f73
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion integration-tests/testconfig/automation/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand All @@ -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
}

0 comments on commit 46a3f73

Please sign in to comment.