mirror of https://github.com/qwc/backive.git
Fix linter findings
This commit is contained in:
parent
081c6cf95c
commit
d8af889365
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue