Skip to content

Commit

Permalink
Remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
lusingander committed Apr 14, 2024
1 parent e69e523 commit 89939f1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion internal/ui/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func listView(l list.Model) string {
return listStyle.Render(l.View())
}

func loadingView(height int, s *spinner.Model, bc []string) string {
func loadingView(s *spinner.Model, bc []string) string {
ret := ""

title := titleView(bc)
Expand Down
2 changes: 1 addition & 1 deletion internal/ui/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func (m profileModel) Update(msg tea.Msg) (profileModel, tea.Cmd) {

func (m profileModel) View() string {
if m.loading {
return loadingView(m.height, m.spinner, m.breadcrumb())
return loadingView(m.spinner, m.breadcrumb())
}
if m.errorMsg != nil {
return m.errorView()
Expand Down
4 changes: 2 additions & 2 deletions internal/ui/prs.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type pullRequestsModel struct {
func newPullRequestsModel(client *gh.GitHubClient, s *spinner.Model) pullRequestsModel {
return pullRequestsModel{
client: client,
owner: newPullRequestsOwnerModel(client),
owner: newPullRequestsOwnerModel(),
repo: newPullRequestsRepositoryModel(),
list: newPullRequestsListModel(),
listAll: newPullRequestsListAllModel(),
Expand Down Expand Up @@ -200,7 +200,7 @@ func (m pullRequestsModel) Update(msg tea.Msg) (pullRequestsModel, tea.Cmd) {

func (m pullRequestsModel) View() string {
if m.loading {
return loadingView(m.height, m.spinner, m.breadcrumb())
return loadingView(m.spinner, m.breadcrumb())
}
if m.errorMsg != nil {
return m.errorView()
Expand Down
2 changes: 1 addition & 1 deletion internal/ui/prs_owner.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func newPullRequestsOwnerDelegateKeyMap() pullRequestsOwnerDelegateKeyMap {
}
}

func newPullRequestsOwnerModel(client *gh.GitHubClient) *pullRequestsOwnerModel {
func newPullRequestsOwnerModel() *pullRequestsOwnerModel {
var items []list.Item
delegate := list.NewDefaultDelegate()

Expand Down
2 changes: 1 addition & 1 deletion internal/ui/repositories.go
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ func (m repositoriesModel) Update(msg tea.Msg) (repositoriesModel, tea.Cmd) {

func (m repositoriesModel) View() string {
if m.loading {
return loadingView(m.height, m.spinner, m.breadcrumb())
return loadingView(m.spinner, m.breadcrumb())
}
if m.errorMsg != nil {
return m.errorView()
Expand Down

0 comments on commit 89939f1

Please sign in to comment.