mirror of
https://github.com/Jguer/yay
synced 2024-09-14 13:51:12 +00:00
style(news): clarify variable
This commit is contained in:
parent
991c5b4146
commit
5b7cee1422
|
@ -26,7 +26,7 @@ type item struct {
|
||||||
Creator string `xml:"dc:creator"`
|
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
|
var fd string
|
||||||
date, err := time.Parse(time.RFC1123Z, item.PubDate)
|
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)
|
fmt.Fprintln(os.Stderr, err)
|
||||||
} else {
|
} else {
|
||||||
fd = text.FormatTime(int(date.Unix()))
|
fd = text.FormatTime(int(date.Unix()))
|
||||||
if !double && !buildTime.IsZero() {
|
if !all && !buildTime.IsZero() {
|
||||||
if buildTime.After(date) {
|
if buildTime.After(date) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue