style(news): clarify variable

This commit is contained in:
jguer 2020-07-27 00:11:24 +02:00
parent 991c5b4146
commit 5b7cee1422
No known key found for this signature in database
GPG key ID: 6D6CC9BEA8556B35

View file

@ -26,7 +26,7 @@ type item struct {
Creator string `xml:"dc:creator"`
}
func (item *item) print(buildTime time.Time, double, quiet bool) {
func (item *item) print(buildTime time.Time, all, quiet bool) {
var fd string
date, err := time.Parse(time.RFC1123Z, item.PubDate)
@ -34,7 +34,7 @@ func (item *item) print(buildTime time.Time, double, quiet bool) {
fmt.Fprintln(os.Stderr, err)
} else {
fd = text.FormatTime(int(date.Unix()))
if !double && !buildTime.IsZero() {
if !all && !buildTime.IsZero() {
if buildTime.After(date) {
return
}