X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/e005c191842ccab0e9600a2221616f434ad0afc7..bd1ce11306527514218acbe0d12f7bcc23114239:/hotline/ui.go diff --git a/hotline/ui.go b/hotline/ui.go index 741c9a6..d0fd6c0 100644 --- a/hotline/ui.go +++ b/hotline/ui.go @@ -1,7 +1,6 @@ package hotline import ( - "errors" "fmt" "github.com/davecgh/go-spew/spew" "github.com/gdamore/tcell/v2" @@ -20,7 +19,6 @@ type UI struct { App *tview.Application Pages *tview.Pages userList *tview.TextView - agreeModal *tview.Modal trackerList *tview.List HLClient *Client } @@ -76,7 +74,6 @@ func NewUI(c *Client) *UI { chatInput: chatInput, userList: userList, trackerList: tview.NewList(), - agreeModal: tview.NewModal(), HLClient: c, } } @@ -197,7 +194,7 @@ func (ui *UI) joinServer(addr, login, password string) error { addr += ":5500" } if err := ui.HLClient.JoinServer(addr, login, password); err != nil { - return errors.New(fmt.Sprintf("Error joining server: %v\n", err)) + return fmt.Errorf("Error joining server: %v\n", err) } go func() {