We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7660be commit 5750058Copy full SHA for 5750058
src/Domain/Strava/Athlete/Weight/ImportAthleteWeight/ImportAthleteWeightCommandHandler.php
@@ -23,8 +23,11 @@ public function handle(Command $command): void
23
24
$this->athleteWeightRepository->removeAll();
25
26
- if (!$athleteWeights = $this->athleteWeightsFromEnvFile->getAll()) {
+ $athleteWeights = $this->athleteWeightsFromEnvFile->getAll();
27
+ if ($athleteWeights->isEmpty()) {
28
$command->getOutput()->writeln('No athlete weights found. Will not be able to calculate relative power outputs');
29
+
30
+ return;
31
}
32
33
/** @var \App\Domain\Strava\Athlete\Weight\AthleteWeight $weight */
0 commit comments