From a5529938536f7a530f0c55e5a82b16a4c80af5b4 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 10 Dec 2024 22:01:27 +0200 Subject: fix --- internal/schedule/schedule.go | 2 +- internal/schedule/stats.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/schedule') 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 } -- cgit v1.2.3