on main help sign in
fix(lint): variable shadowing
2fd65cdChristian Rocha
internal/tui/tui.go+4−4
@@ -254,9 +254,9 @@ func (a *appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
254 return a, tea.Batch(cmds...)
254 return a, tea.Batch(cmds...)
255 case splash.OnboardingCompleteMsg:
255 case splash.OnboardingCompleteMsg:
256 a.isConfigured = config.HasInitialDataConfig()
256 a.isConfigured = config.HasInitialDataConfig()
257− updated, cmd := a.pages[a.currentPage].Update(msg)
257+ updated, pageCmd := a.pages[a.currentPage].Update(msg)
258 a.pages[a.currentPage] = updated.(util.Model)
258 a.pages[a.currentPage] = updated.(util.Model)
259− cmds = append(cmds, cmd)
259+ cmds = append(cmds, pageCmd)
260 return a, tea.Batch(cmds...)
260 return a, tea.Batch(cmds...)
261 // Key Press Messages
261 // Key Press Messages
262 case tea.KeyPressMsg:
262 case tea.KeyPressMsg:
@@ -268,9 +268,9 @@ func (a *appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
268 a.dialog = u.(dialogs.DialogCmp)
268 a.dialog = u.(dialogs.DialogCmp)
269 cmds = append(cmds, dialogCmd)
269 cmds = append(cmds, dialogCmd)
270 } else {
270 } else {
271− updated, cmd := a.pages[a.currentPage].Update(msg)
271+ updated, pageCmd := a.pages[a.currentPage].Update(msg)
272 a.pages[a.currentPage] = updated.(util.Model)
272 a.pages[a.currentPage] = updated.(util.Model)
273− cmds = append(cmds, cmd)
273+ cmds = append(cmds, pageCmd)
274 }
274 }
275 return a, tea.Batch(cmds...)
275 return a, tea.Batch(cmds...)
276 }
276 }