Jelajahi Sumber

remove redundant casing

Mohammed Nafees 3 tahun lalu
induk
melakukan
0f7823aacf
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      cli/cmd/run.go

+ 1 - 1
cli/cmd/run.go

@@ -149,7 +149,7 @@ func run(_ *types.GetAuthenticatedUserResponse, client *api.Client, args []strin
 
 
 	if len(podsSimple) == 0 {
 	if len(podsSimple) == 0 {
 		return fmt.Errorf("At least one pod must exist in this deployment.")
 		return fmt.Errorf("At least one pod must exist in this deployment.")
-	} else if nonInteractive || len(podsSimple) == 1 || !existingPod {
+	} else if nonInteractive || len(podsSimple) == 1 {
 		selectedPod = podsSimple[0]
 		selectedPod = podsSimple[0]
 	} else {
 	} else {
 		podNames := make([]string, 0)
 		podNames := make([]string, 0)