Skip to content

Commit

Permalink
fixed linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
skx committed Nov 23, 2024
1 parent 3c48b1e commit bb867e0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion chooseui/chooseui.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func New(choices []string) *ChooseUI {
return &ChooseUI{Choices: choices}
}

// Choose launches our user interface.
// SetupUI configures the UI.
func (ui *ChooseUI) SetupUI() {

//
Expand Down Expand Up @@ -125,6 +125,7 @@ func (ui *ChooseUI) SetupUI() {

}

// SetupKeyBinding installs the global captures, and list-specific keybindings.
func (ui *ChooseUI) SetupKeyBinding() {

//
Expand Down
9 changes: 8 additions & 1 deletion cmd_feeds.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,17 @@ func (t *feedsCommand) FindFeeds(base string) ([]string, error) {
// Use the parser to get the links
ret, err = t.runparser(z, base)

// Nothing found?
// Error? Return that.
if err != nil {
return ret, err
}

// No feed-links? Then return the error-sentinel.
if len(ret) == 0 {
return ret, ErrNoFeeds
}

// All good
return ret, nil
}

Expand Down

0 comments on commit bb867e0

Please sign in to comment.