on main help sign in
fix(lint): variable shadowing
commit2fd65cdfe25d6701d9efe73fe25529c310e5bf76 authorChristian Rocha <christian@rocha.is> dateMon 21 Jul 2025, 18:47 (1 year ago) parent2c0d70c
1 file changed+4−4
internal/tui/tui.go+4−4
internal/tui/tui.go+4−4
@@ -254,9 +254,9 @@ func (a *appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
254254 return a, tea.Batch(cmds...)
255255 case splash.OnboardingCompleteMsg:
256256 a.isConfigured = config.HasInitialDataConfig()
257− updated, cmd := a.pages[a.currentPage].Update(msg)
257+ updated, pageCmd := a.pages[a.currentPage].Update(msg)
258258 a.pages[a.currentPage] = updated.(util.Model)
259− cmds = append(cmds, cmd)
259+ cmds = append(cmds, pageCmd)
260260 return a, tea.Batch(cmds...)
261261 // Key Press Messages
262262 case tea.KeyPressMsg:
@@ -268,9 +268,9 @@ func (a *appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
268268 a.dialog = u.(dialogs.DialogCmp)
269269 cmds = append(cmds, dialogCmd)
270270 } else {
271− updated, cmd := a.pages[a.currentPage].Update(msg)
271+ updated, pageCmd := a.pages[a.currentPage].Update(msg)
272272 a.pages[a.currentPage] = updated.(util.Model)
273− cmds = append(cmds, cmd)
273+ cmds = append(cmds, pageCmd)
274274 }
275275 return a, tea.Batch(cmds...)
276276 }