Skip to content

Commit f779bd3

Browse files
committed
fix: no action to perform
1 parent 8c154e0 commit f779bd3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

EMS/core-bundle/src/Service/AliasService.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,9 @@ public function updateAlias(string $alias, array $actions): void
332332
$json[] = [$type => ['index' => $index, 'alias' => $alias]];
333333
}
334334
}
335+
if (empty($json)) {
336+
return;
337+
}
335338

336339
$endpoint = new UpdateAliases();
337340
$endpoint->setBody(['actions' => $json]);

0 commit comments

Comments
 (0)