diff --git a/src/Drupal/Commands/core/MigrateRunnerCommands.php b/src/Drupal/Commands/core/MigrateRunnerCommands.php index 614efb93c7..762a887524 100644 --- a/src/Drupal/Commands/core/MigrateRunnerCommands.php +++ b/src/Drupal/Commands/core/MigrateRunnerCommands.php @@ -609,9 +609,7 @@ public function resetStatus(?string $migrationIds = null, array $options = ['all foreach ($migrations as $migrationId => $migration) { /** @var MigrationInterface $migration */ $status = $migration->getStatus(); - if ($status == MigrationInterface::STATUS_IDLE) { - $this->logger()->warning(dt('Migration @id is already Idle', ['@id' => $migrationId])); - } else { + if ($status !== MigrationInterface::STATUS_IDLE) { $migration->setStatus(MigrationInterface::STATUS_IDLE); $this->logger()->success(dt('Migration @id reset to Idle', ['@id' => $migrationId])); }