diff options
| author | Paul Buetow <paul@buetow.org> | 2024-12-10 22:01:27 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-12-10 22:01:27 +0200 |
| commit | a5529938536f7a530f0c55e5a82b16a4c80af5b4 (patch) | |
| tree | 8c76b7190872174bc9dea434f8c3af758d0ffa28 /internal/schedule | |
| parent | c0e0e1ff4905af70a4f113eb9c2e0d94f18b2436 (diff) | |
fix
Diffstat (limited to 'internal/schedule')
| -rw-r--r-- | internal/schedule/schedule.go | 2 | ||||
| -rw-r--r-- | internal/schedule/stats.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/internal/schedule/schedule.go b/internal/schedule/schedule.go index 9b31f88..2985da2 100644 --- a/internal/schedule/schedule.go +++ b/internal/schedule/schedule.go @@ -77,7 +77,7 @@ func selectRandomEntry(dir, tag string) (entry.Entry, error) { } en, err := entry.New(filepath.Join(dir, file.Name())) if err != nil { - colour.Infoln(err) + _, _ = colour.Infoln(err) return entry.Zero, false } return en, en.State == entry.Queued diff --git a/internal/schedule/stats.go b/internal/schedule/stats.go index 42f9332..b4f8153 100644 --- a/internal/schedule/stats.go +++ b/internal/schedule/stats.go @@ -81,11 +81,11 @@ func (s stats) targetHit(pauseDays, maxQueuedDays int) bool { pauseDays-- } if s.postsPerDay >= s.postsPerDayTarget { - colour.Infoln("Posts per day target hit") + _, _ = colour.Infoln("Posts per day target hit") return true } if s.lastPostDaysAgo <= float64(pauseDays) { - colour.Infoln("Need to wait a bit longer as last post isn't", pauseDays, "days ago yet") + _, _ = colour.Infoln("Need to wait a bit longer as last post isn't", pauseDays, "days ago yet") return true } |
