Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
daynewlee committed Nov 13, 2024
1 parent 4295ba3 commit e876194
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions enricher/epss/epss.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e876194

Please sign in to comment.