Skip to content

Commit

Permalink
Remove unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Mar 3, 2025
1 parent 068fea9 commit a8ccd8b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/CronBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,7 @@ public static function merge(string $existingCron, self $cronBuilder): string
return $existingCron . "\n\n" . $cron;
}

if (1 === $replacements) {
return trim($replacedCron) . "\n";
}

throw new \RuntimeException('The number of replacements should be 1 or 0');
return trim($replacedCron) . "\n";
}

private function parse(string $value): string
Expand Down

0 comments on commit a8ccd8b

Please sign in to comment.