diff options
Diffstat (limited to '')
-rw-r--r-- | job/utils.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/job/utils.go b/job/utils.go index 8bbb6eb..33c25cd 100644 --- a/job/utils.go +++ b/job/utils.go @@ -18,6 +18,7 @@ func KeepOldestOnly(jobs []Job) []Job { // KeepSuccessOnly returns only the successful jobs from a job list (suiatble to write a new spool file) func KeepSuccessOnly(jobs []Job) (result []Job) { + result = make([]Job, 0) for _, job := range jobs { if job.Success { result = append(result, job) |