Skip to content

Commit

Permalink
More suited variable naming
Browse files Browse the repository at this point in the history
  • Loading branch information
s-l-teichmann committed Dec 1, 2023
1 parent 8be5e9e commit e5f0a57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/csaf_checker/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ func (p *processor) rolieFeedEntries(feed string) ([]csaf.AdvisoryFile, error) {

// Filter if we have date checking.
if accept := p.cfg.Range; accept != nil {
if pub := time.Time(entry.Updated); !pub.IsZero() && !accept.Contains(pub) {
if t := time.Time(entry.Updated); !t.IsZero() && !accept.Contains(t) {
return
}
}
Expand Down
2 changes: 1 addition & 1 deletion csaf/advisories.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ func (afp *AdvisoryFileProcessor) processROLIE(

// Filter if we have date checking.
if afp.AgeAccept != nil {
if pub := time.Time(entry.Updated); !pub.IsZero() && !afp.AgeAccept(pub) {
if t := time.Time(entry.Updated); !t.IsZero() && !afp.AgeAccept(t) {
return
}
}
Expand Down

0 comments on commit e5f0a57

Please sign in to comment.