Skip to content

Commit

Permalink
fix: reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
byawitz committed Aug 28, 2024
1 parent 16e1191 commit 20b5937
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app/http.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,6 @@ function getStorageDevice(string $root): Device
}
}

/**
* @return string
*/


/**
* @param array<string> $networks
Expand All @@ -279,8 +275,8 @@ function createNetworks(Orchestration $orchestration, array $networks): array
}
$containers = $orchestration->list(['ancestor' => $imageName, 'status' => 'running']);

if (count($containers) > 1) {
throw new \Exception('Too many executor found');
if (count($containers) < 1) {
throw new \Exception('No running executor found');
}

$containerName = $containers[0]->getName();
Expand Down

0 comments on commit 20b5937

Please sign in to comment.