Skip to content

Commit 0588cf2

Browse files
committed
reduce comments due to clear naming of function
1 parent f287833 commit 0588cf2

File tree

8 files changed

+0
-8
lines changed

8 files changed

+0
-8
lines changed

internal/cmd/ske/cluster/create/create.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
7070
return err
7171
}
7272

73-
// Validate project ID (exists and user has access)
7473
projectLabel, err := validation.ValidateAndGetProjectLabel(ctx, params.Printer, params.CliVersion, cmd, model.ProjectId)
7574
if err != nil {
7675
return err

internal/cmd/ske/cluster/delete/delete.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
4545
return err
4646
}
4747

48-
// Validate project ID (exists and user has access)
4948
_, err = validation.ValidateAndGetProjectLabel(ctx, params.Printer, params.CliVersion, cmd, model.ProjectId)
5049
if err != nil {
5150
return err

internal/cmd/ske/cluster/describe/describe.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
5050
return err
5151
}
5252

53-
// Validate project ID (exists and user has access)
5453
_, err = validation.ValidateAndGetProjectLabel(ctx, params.Printer, params.CliVersion, cmd, model.ProjectId)
5554
if err != nil {
5655
return err

internal/cmd/ske/cluster/list/list.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
5757
return err
5858
}
5959

60-
// Validate project ID (exists and user has access)
6160
projectLabel, err := validation.ValidateAndGetProjectLabel(ctx, params.Printer, params.CliVersion, cmd, model.ProjectId)
6261
if err != nil {
6362
return err

internal/cmd/ske/describe/describe.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
4242
return err
4343
}
4444

45-
// Validate project ID (exists and user has access)
4645
_, err = validation.ValidateAndGetProjectLabel(ctx, params.Printer, params.CliVersion, cmd, model.ProjectId)
4746
if err != nil {
4847
return err

internal/cmd/ske/disable/disable.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
4141
return err
4242
}
4343

44-
// Validate project ID (exists and user has access)
4544
projectLabel, err := validation.ValidateAndGetProjectLabel(ctx, params.Printer, params.CliVersion, cmd, model.ProjectId)
4645
if err != nil {
4746
return err

internal/cmd/ske/enable/enable.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
4141
return err
4242
}
4343

44-
// Validate project ID (exists and user has access)
4544
projectLabel, err := validation.ValidateAndGetProjectLabel(ctx, params.Printer, params.CliVersion, cmd, model.ProjectId)
4645
if err != nil {
4746
return err

internal/cmd/ske/kubeconfig/create/create.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
8484
return err
8585
}
8686

87-
// Validate project ID (exists and user has access)
8887
_, err = validation.ValidateAndGetProjectLabel(ctx, params.Printer, params.CliVersion, cmd, model.ProjectId)
8988
if err != nil {
9089
return err

0 commit comments

Comments
 (0)