Fix linter findings

This commit is contained in:
Marcel Otte 2021-11-02 14:40:35 +01:00
parent 081c6cf95c
commit d8af889365
1 changed files with 1 additions and 2 deletions

View File

@ -71,7 +71,6 @@ func LastRun(backup string) (time.Time, error) {
if ok { if ok {
var t = time.Time(runs[backup].runlist.Front().Value.(time.Time)) var t = time.Time(runs[backup].runlist.Front().Value.(time.Time))
return t, nil 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")
} }