Skip to content

Commit 37748a0

Browse files
committed
fix: remove dead duplicate Running status check in start command
The if-block above already checks for Running and returns early, making the identical case in the switch statement unreachable. Signed-off-by: mynk8 <mr.mayankgame@gmail.com>
1 parent 8648b37 commit 37748a0

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

cmd/start.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ microcks start --name [name of you container/instance]`,
5353
}
5454

5555
switch instance.Status {
56-
case "Running":
57-
fmt.Printf("Microcks instance with name %s is already running", name)
58-
return
5956
case "Exited":
6057
containerClient, err := connectors.NewContainerClient(instance.Driver)
6158
errors.CheckError(err)

0 commit comments

Comments
 (0)