Skip to content

Commit d310b07

Browse files
committed
cleanup/formatting
Signed-off-by: Kyle Quest <[email protected]>
1 parent 89d9651 commit d310b07

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

pkg/app/master/commands/clifvparser.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,4 +847,3 @@ func IsTrueStr(value string) bool {
847847

848848
return false
849849
}
850-

pkg/app/master/commands/cliprompt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func (ia *InteractiveApp) execute(command string) {
104104

105105
args = append(args, val)
106106
}
107-
107+
108108
if err := ia.app.Run(args); err != nil {
109109
log.Fatal(err)
110110
}

pkg/app/master/commands/debug/handle_docker_runtime.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ func listDebuggableDockerContainersWithConfig(client *dockerapi.Client) (map[str
323323
func listDockerDebugContainers(
324324
client *dockerapi.Client,
325325
targetContainer string,
326-
onlyActive bool) (map[string]*DebugContainerInfo, error) {
326+
onlyActive bool) (map[string]*DebugContainerInfo, error) {
327327
containers, err := dockerutil.ListContainers(client, "", true)
328328
if err != nil {
329329
return nil, err
@@ -376,9 +376,9 @@ func listDockerDebugContainers(
376376
}
377377

378378
func listDockerDebugContainersWithConfig(
379-
client *dockerapi.Client,
379+
client *dockerapi.Client,
380380
targetContainer string,
381-
onlyActive bool) (map[string]*DebugContainerInfo, error) {
381+
onlyActive bool) (map[string]*DebugContainerInfo, error) {
382382
//todo: pass the docker client config params instead of the existing client
383383
return listDockerDebugContainers(client, targetContainer, onlyActive)
384384
}

pkg/app/master/commands/debug/handle_kubernetes_runtime.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ func listK8sDebugContainers(
799799
nsName string,
800800
podName string,
801801
targetContainer string,
802-
onlyActive bool) (map[string]*DebugContainerInfo, error) {
802+
onlyActive bool) (map[string]*DebugContainerInfo, error) {
803803

804804
pod, err := api.CoreV1().Pods(nsName).Get(ctx, podName, metav1.GetOptions{})
805805
if err != nil {

pkg/app/master/commands/debug/prompt.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ func completeSession(ia *commands.InteractiveApp, token string, params prompt.Do
198198
var values []prompt.Suggest
199199
ccs := commands.GetCurrentCommandState()
200200
if ccs != nil && ccs.Command == Name {
201-
csessValStr := ccs.GetCFValue(FlagConnectSession)
201+
csessValStr := ccs.GetCFValue(FlagConnectSession)
202202

203203
runtimeFlag := commands.FullFlagName(FlagRuntime)
204204
rtFlagVals, found := ccs.CommandFlags[runtimeFlag]
@@ -210,7 +210,7 @@ func completeSession(ia *commands.InteractiveApp, token string, params prompt.Do
210210
kubeconfig = kcFlagVals[0]
211211
}
212212

213-
namespace := ccs.GetCFValueWithDefault(FlagNamespace,NamespaceDefault)
213+
namespace := ccs.GetCFValueWithDefault(FlagNamespace, NamespaceDefault)
214214

215215
var pod string
216216
podFlag := commands.FullFlagName(FlagPod)
@@ -252,8 +252,8 @@ func completeSession(ia *commands.InteractiveApp, token string, params prompt.Do
252252
target = targetFlagVals[0]
253253
}
254254

255-
result, err := listDockerDebugContainersWithConfig(ccs.Dclient,
256-
target,
255+
result, err := listDockerDebugContainersWithConfig(ccs.Dclient,
256+
target,
257257
commands.IsTrueStr(csessValStr))
258258
if err == nil {
259259
for _, info := range result {

0 commit comments

Comments
 (0)