diff --git a/cmd/csaf_downloader/downloader.go b/cmd/csaf_downloader/downloader.go index 933f2a2f..1799a845 100644 --- a/cmd/csaf_downloader/downloader.go +++ b/cmd/csaf_downloader/downloader.go @@ -621,14 +621,16 @@ nextAdvisory: continue } - if err := d.eval.Extract(`$.document.tracking.initial_release_date`, dateExtract, false, doc); err != nil { + if err := d.eval.Extract( + `$.document.tracking.initial_release_date`, dateExtract, false, doc, + ); err != nil { slog.Warn("Cannot extract initial_release_date from advisory", "url", file.URL()) initialReleaseDate = time.Now() } initialReleaseDate = initialReleaseDate.UTC() - // Advisories that failed validation are store in a special folder. + // Advisories that failed validation are stored in a special folder. var newDir string if valStatus != validValidationStatus { newDir = path.Join(d.cfg.Directory, failedValidationDir)