We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9f399e commit 4781de2Copy full SHA for 4781de2
examples/color/bubbletea/main.go
@@ -70,10 +70,10 @@ type model struct {
70
aborted bool
71
}
72
73
-func (m model) Init() (tea.Model, tea.Cmd) {
+func (m model) Init() tea.Cmd {
74
// Query for the background color on start.
75
m.yes = true
76
- return m, tea.RequestBackgroundColor
+ return tea.RequestBackgroundColor
77
78
79
func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
examples/compat/bubbletea/main.go
@@ -63,10 +63,10 @@ type model struct {
63
64
65
66
67
68
m.styles = newStyles()
69
- return m, nil
+ return nil
0 commit comments