mirror of
https://github.com/IllusionMan1212/gorc.git
synced 2026-10-24 02:12:33 +00:00
chore: upgrade dependencies. remove deprecated code. conform to linter style
This commit is contained in:
+3
-3
@@ -45,7 +45,7 @@ type State struct {
|
||||
Client *irc.Client
|
||||
}
|
||||
|
||||
func initialUiState(client *irc.Client) UI {
|
||||
func initialUIState(client *irc.Client) UI {
|
||||
return UI{
|
||||
Login: login.NewLogin(),
|
||||
MainScreen: mainscreen.NewMainScreen(client),
|
||||
@@ -57,7 +57,7 @@ func InitialState() *State {
|
||||
|
||||
return &State{
|
||||
Client: client,
|
||||
UI: initialUiState(client),
|
||||
UI: initialUIState(client),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -125,5 +125,5 @@ func (s State) View() string {
|
||||
return s.UI.MainScreen.View()
|
||||
}
|
||||
|
||||
return "Error: this screen shouldn't ever show"
|
||||
panic("Invalid screen")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user