aboutsummaryrefslogtreecommitdiff
path: root/internal/feed/feed.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/feed/feed.go')
-rw-r--r--internal/feed/feed.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/feed/feed.go b/internal/feed/feed.go
index f111cd6..ddc91ed 100644
--- a/internal/feed/feed.go
+++ b/internal/feed/feed.go
@@ -53,10 +53,10 @@ func (feed *Feed) descriptor() feedDescriptor {
}
func (feed *Feed) NeedsUpdate(updateTime time.Time) bool {
- if *feed.MinFreq == 0 { // shortcut
+ if feed.MinFreq == 0 { // shortcut
return true
}
- if !updateTime.IsZero() && int(time.Since(updateTime).Hours()) < *feed.MinFreq {
+ if !updateTime.IsZero() && int(time.Since(updateTime).Hours()) < feed.MinFreq {
log.Printf("Feed '%s' does not need updating, skipping.", feed.Name)
return false
}