diff --git a/internal/dao/job.go b/internal/dao/job.go index 3c00f912..3fd35252 100644 --- a/internal/dao/job.go +++ b/internal/dao/job.go @@ -4,6 +4,7 @@ import ( "context" "errors" "fmt" + "github.com/derailed/k9s/internal" "github.com/derailed/k9s/internal/client" "github.com/rs/zerolog/log" @@ -45,11 +46,11 @@ func (j *Job) List(ctx context.Context, ns string) ([]runtime.Object, error) { continue } - for _, r := range j.ObjectMeta.OwnerReferences { - if r.Name == n { - ll = append(ll, o) - } + for _, r := range j.ObjectMeta.OwnerReferences { + if r.Name == n { + ll = append(ll, o) } + } } return ll, nil