Explorar o código

style(news): clarify variable

jguer %!s(int64=4) %!d(string=hai) anos
pai
achega
5b7cee1422
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      pkg/news/news.go

+ 2 - 2
pkg/news/news.go

@@ -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
 			}