diff --git a/src/Orchestration/Adapter/DockerAPI.php b/src/Orchestration/Adapter/DockerAPI.php index 75f2497..03c3cb8 100644 --- a/src/Orchestration/Adapter/DockerAPI.php +++ b/src/Orchestration/Adapter/DockerAPI.php @@ -207,9 +207,10 @@ public function removeNetwork(string $name): bool if ($result['code'] === 404) { throw new Orchestration('Network with name "'.$name.'" does not exist: '.$result['response']); - } else if ($result['code'] !== 204) { + } elseif ($result['code'] !== 204) { throw new Orchestration('Error removing network: '.$result['response']); } + return true; }