Skip to content

Commit

Permalink
Break overly long line. Fix typo in comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-l-teichmann committed Nov 20, 2023
1 parent a413852 commit 6f88701
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/csaf_downloader/downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6f88701

Please sign in to comment.