list: Fix use of wrong variable

This commit is contained in:
Tom Wiesing 2024-04-08 22:50:42 +02:00
parent 8235ea9105
commit e259872bb5
No known key found for this signature in database

View file

@ -62,7 +62,7 @@ func (li *ListInstances) TaskName() string {
func (li *ListInstances) Cron(ctx context.Context) (err error) {
{
names, e := li.getNames(ctx)
if err == nil {
if e == nil {
li.names.Set(names)
} else {
err = e