refactor(service-management): rearrange docker cleanup logic in StopService to improve readability
This commit is contained in:
@@ -38,9 +38,9 @@ class StopService
|
||||
|
||||
if ($isDeleteOperation) {
|
||||
$service->deleteConnectedNetworks();
|
||||
if ($dockerCleanup) {
|
||||
CleanupDocker::dispatch($server, true);
|
||||
}
|
||||
}
|
||||
if ($dockerCleanup) {
|
||||
CleanupDocker::dispatch($server, true);
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
return $e->getMessage();
|
||||
|
Reference in New Issue
Block a user