From 582fc3eedc070a5290b9546e6e432acdcf14676c Mon Sep 17 00:00:00 2001 From: loks0n <22452787+loks0n@users.noreply.github.com> Date: Mon, 1 Jul 2024 11:21:00 +0100 Subject: [PATCH] chore: fmt --- src/Orchestration/Adapter/DockerAPI.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Orchestration/Adapter/DockerAPI.php b/src/Orchestration/Adapter/DockerAPI.php index 6533225..00c8587 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; }