From d8af88936592a3ec16ecc2def35c9d445b30f5ba Mon Sep 17 00:00:00 2001 From: Marcel Otte Date: Tue, 2 Nov 2021 14:40:35 +0100 Subject: [PATCH] Fix linter findings --- scheduler/scheduler.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scheduler/scheduler.go b/scheduler/scheduler.go index 5021647..38b66d5 100644 --- a/scheduler/scheduler.go +++ b/scheduler/scheduler.go @@ -71,7 +71,6 @@ func LastRun(backup string) (time.Time, error) { if ok { var t = time.Time(runs[backup].runlist.Front().Value.(time.Time)) return t, nil - } else { - return time.Unix(0, 0), fmt.Errorf("Backup name not found and therefore has never run!") } + return time.Unix(0, 0), fmt.Errorf("Backup name not found and therefore has never run") }