Skip to content

Commit

Permalink
style(news): clarify variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Jguer committed Jul 26, 2020
1 parent 991c5b4 commit 5b7cee1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/news/news.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ 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)

if err != nil {
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
}
Expand Down

0 comments on commit 5b7cee1

Please sign in to comment.