From f78c69ccec109e854ce270a56850301ea87c3827 Mon Sep 17 00:00:00 2001 From: jfeodor <98314775+jfeodor@users.noreply.github.com> Date: Mon, 10 Jun 2024 16:56:29 +0200 Subject: [PATCH] Merge deployment status cases Co-authored-by: moroderNumerous <153640142+moroderNumerous@users.noreply.github.com> --- cli/cmd/deploy/deploy.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cli/cmd/deploy/deploy.go b/cli/cmd/deploy/deploy.go index 5963414..f7c366b 100644 --- a/cli/cmd/deploy/deploy.go +++ b/cli/cmd/deploy/deploy.go @@ -141,8 +141,7 @@ func Deploy(ctx context.Context, apps AppService, appDir, projectDir, slug strin case "AppDeployStatusEvent": task.AddLine("Deploy", "Status: "+de.DeploymentStatus.Status) switch de.DeploymentStatus.Status { - case "PENDING": - case "RUNNING": + case "PENDING", "RUNNING": default: return fmt.Errorf("got status %s while deploying", de.DeploymentStatus.Status) }