Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dlvhdr committed Aug 13, 2024
1 parent c3e8816 commit e14ba06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"github.com/muesli/termenv"
"github.com/spf13/cobra"

"github.com/dlvhdr/gh-dash/v4/config"
"github.com/dlvhdr/gh-dash/v4/ui"
"github.com/dlvhdr/gh-dash/v4/ui/markdown"
)
Expand Down Expand Up @@ -116,7 +117,7 @@ func init() {

rootCmd.Run = func(_ *cobra.Command, args []string) {
var repo *string
_, repos := os.LookupEnv("FF_REPOS_VIEW")
repos := config.IsFeatureEnabled(config.FF_REPO_VIEW)
if repos && len(args) > 0 {
repo = &args[0]
}
Expand Down

0 comments on commit e14ba06

Please sign in to comment.