Skip to content

Commit

Permalink
fix after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
phm07 committed Jul 10, 2024
1 parent dedc654 commit 23ce28c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/cmd/base/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ func (lc *ListCmd) Run(s state.State, cmd *cobra.Command) error {

sorts, _ := cmd.Flags().GetStringSlice("sort")
if !cmd.Flags().Changed("sort") {
sorts = lc.SortOption.Get(s.Config())
var err error
sorts, err = lc.SortOption.Get(s.Config())
if err != nil {
return err
}
}

resources, err := lc.Fetch(s, cmd.Flags(), listOpts, sorts)
Expand Down

0 comments on commit 23ce28c

Please sign in to comment.