diff --git a/enricher/epss/epss.go b/enricher/epss/epss.go index 630051e6e..c3642099f 100644 --- a/enricher/epss/epss.go +++ b/enricher/epss/epss.go @@ -81,12 +81,12 @@ func (e *Enricher) Configure(ctx context.Context, f driver.ConfigUnmarshaler, c } if cfg.FeedRoot != nil { - // Parse and verify the URL format + // validate the URL format if _, err := url.Parse(*cfg.FeedRoot); err != nil { return fmt.Errorf("invalid URL format for FeedRoot: %w", err) } - // Check if the URL points to a .gz file + // Check for a .gz file if strings.HasSuffix(*cfg.FeedRoot, ".gz") { e.feedPath = *cfg.FeedRoot } else {