Skip to content

Commit

Permalink
Fix: remove debug output and fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
JanHoefelmeyer committed Jan 22, 2025
1 parent 0fdf2b2 commit 65b2b79
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cmd/csaf_checker/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -762,10 +762,8 @@ func (p *processor) integrity(
p.badChanges.error("'current_release_date' is not a string in %s", u)
} else if d, err := time.Parse(time.RFC3339, text); err != nil {
p.badChanges.error(
"Parsing 'initial_release_date' as RFC3339 failed in %s: %v", u, err)
"Parsing 'current_release_date' as RFC3339 failed in %s: %v", u, err)
} else {
fmt.Println(p.times[f])
fmt.Println(d)
if p.times[f] != d {
p.badChanges.error("Current release date in changes.csv and %s is not identical", u)
}
Expand Down Expand Up @@ -963,9 +961,7 @@ func (p *processor) checkChanges(base string, mask whereType) error {
}
p.badChanges.info("Found %v", changes)

if p.times == nil {
p.times = map[csaf.AdvisoryFile]time.Time{}
}
p.times = map[csaf.AdvisoryFile]time.Time{}

times, files, err := func() ([]time.Time, []csaf.AdvisoryFile, error) {
defer res.Body.Close()
Expand Down

0 comments on commit 65b2b79

Please sign in to comment.