From 4ac49e64cb371c85099e075b109bb7572464e78b Mon Sep 17 00:00:00 2001 From: core23 Date: Wed, 5 Jun 2024 18:12:18 +0200 Subject: [PATCH] Fix releasing first version --- src/Command/ReleaseCommand.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Command/ReleaseCommand.php b/src/Command/ReleaseCommand.php index da6c588..7f4132c 100644 --- a/src/Command/ReleaseCommand.php +++ b/src/Command/ReleaseCommand.php @@ -124,10 +124,6 @@ protected function getCurrentVersion(Context $context): string try { $currentVersion = $context->versionPersister->getCurrentVersion($context); } catch (NoReleaseFoundException $e) { - if (false === $this->informationCollector->getValue(self::CONFIRM_FIRST)) { - throw $e; - } - $currentVersion = $context->getInitialVersion(); }