Skip to content

Commit 6556d46

Browse files
committed
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 <mr.mayankgame@gmail.com>
1 parent e781f48 commit 6556d46

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

cmd/start.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ microcks start --name [name of you container/instance]`,
4747
instance = &config.Instance{}
4848
}
4949

50-
if instance.Status == "Running" {
51-
fmt.Printf("Microcks instance with name %s is already running", name)
52-
return
53-
}
54-
5550
switch instance.Status {
5651
case "Running":
5752
fmt.Printf("Microcks instance with name %s is already running", name)

0 commit comments

Comments
 (0)