From 6556d4625533b52fcb1dc3c7b57d54842fcedfe2 Mon Sep 17 00:00:00 2001 From: mynk8 Date: Tue, 5 May 2026 19:05:24 +0530 Subject: [PATCH] fix: remove dead duplicate Running status check in start command The if-block above the switch was redundant with the case inside it. Consolidate into the switch statement only. Signed-off-by: mynk8 --- cmd/start.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cmd/start.go b/cmd/start.go index f36c22c..9a043ac 100644 --- a/cmd/start.go +++ b/cmd/start.go @@ -47,11 +47,6 @@ microcks start --name [name of you container/instance]`, instance = &config.Instance{} } - if instance.Status == "Running" { - fmt.Printf("Microcks instance with name %s is already running", name) - return - } - switch instance.Status { case "Running": fmt.Printf("Microcks instance with name %s is already running", name)