Skip to content

Commit

Permalink
fix: delete the never-arriving return non-nil err (#816)
Browse files Browse the repository at this point in the history
  • Loading branch information
healthjyk committed Feb 23, 2024
1 parent 782f545 commit 133ede9
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 15 deletions.
3 changes: 0 additions & 3 deletions pkg/cmd/workspace/create/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ func NewCmd() *cobra.Command {
DisableFlagsInUseLine: true,
RunE: func(cmd *cobra.Command, args []string) (err error) {
defer util.RecoverErr(&err)
if err != nil {
return err
}
util.CheckErr(o.Complete(args))
util.CheckErr(o.Validate())
util.CheckErr(o.Run())
Expand Down
3 changes: 0 additions & 3 deletions pkg/cmd/workspace/del/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ func NewCmd() *cobra.Command {
DisableFlagsInUseLine: true,
RunE: func(cmd *cobra.Command, args []string) (err error) {
defer util.RecoverErr(&err)
if err != nil {
return err
}
util.CheckErr(o.Complete(args))
util.CheckErr(o.Validate())
util.CheckErr(o.Run())
Expand Down
3 changes: 0 additions & 3 deletions pkg/cmd/workspace/list/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ func NewCmd() *cobra.Command {
DisableFlagsInUseLine: true,
RunE: func(cmd *cobra.Command, args []string) (err error) {
defer util.RecoverErr(&err)
if err != nil {
return err
}
util.CheckErr(Validate(args))
util.CheckErr(Run())
return
Expand Down
3 changes: 0 additions & 3 deletions pkg/cmd/workspace/show/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ func NewCmd() *cobra.Command {
DisableFlagsInUseLine: true,
RunE: func(cmd *cobra.Command, args []string) (err error) {
defer util.RecoverErr(&err)
if err != nil {
return err
}
util.CheckErr(o.Complete(args))
util.CheckErr(o.Validate())
util.CheckErr(o.Run())
Expand Down
3 changes: 0 additions & 3 deletions pkg/cmd/workspace/update/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ func NewCmd() *cobra.Command {
DisableFlagsInUseLine: true,
RunE: func(cmd *cobra.Command, args []string) (err error) {
defer util.RecoverErr(&err)
if err != nil {
return err
}
util.CheckErr(o.Complete(args))
util.CheckErr(o.Validate())
util.CheckErr(o.Run())
Expand Down

0 comments on commit 133ede9

Please sign in to comment.