Skip to content

Commit

Permalink
refactor(gui): remove unnecessary error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
danvergara committed Jul 18, 2024
1 parent 5333d35 commit edcd035
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/gui/database_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,6 @@ func (gui *Gui) nextPage(g *gocui.Gui, v *gocui.View) error {
}

totalPages := gui.c.TotalPages()
if err != nil {
return err
}

if err := gui.showIndex("index", page, totalPages); err != nil {
return err
Expand All @@ -222,9 +219,6 @@ func (gui *Gui) previousPage(g *gocui.Gui, v *gocui.View) error {
}

totalPages := gui.c.TotalPages()
if err != nil {
return err
}

if err := gui.showIndex("index", page, totalPages); err != nil {
return err
Expand Down

0 comments on commit edcd035

Please sign in to comment.