From 2fd65cdfe25d6701d9efe73fe25529c310e5bf76 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Mon, 21 Jul 2025 18:47:53 -0400 Subject: [PATCH] fix(lint): variable shadowing --- internal/tui/tui.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/tui/tui.go b/internal/tui/tui.go index 728437e6a9b46bf52c23b23a78f1cdeb4fa588c2..dda0ce2b9a5190953cf2bc288001a74c8c763b09 100644 --- a/internal/tui/tui.go +++ b/internal/tui/tui.go @@ -254,9 +254,9 @@ func (a *appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) { return a, tea.Batch(cmds...) case splash.OnboardingCompleteMsg: a.isConfigured = config.HasInitialDataConfig() - updated, cmd := a.pages[a.currentPage].Update(msg) + updated, pageCmd := a.pages[a.currentPage].Update(msg) a.pages[a.currentPage] = updated.(util.Model) - cmds = append(cmds, cmd) + cmds = append(cmds, pageCmd) return a, tea.Batch(cmds...) // Key Press Messages case tea.KeyPressMsg: @@ -268,9 +268,9 @@ func (a *appModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) { a.dialog = u.(dialogs.DialogCmp) cmds = append(cmds, dialogCmd) } else { - updated, cmd := a.pages[a.currentPage].Update(msg) + updated, pageCmd := a.pages[a.currentPage].Update(msg) a.pages[a.currentPage] = updated.(util.Model) - cmds = append(cmds, cmd) + cmds = append(cmds, pageCmd) } return a, tea.Batch(cmds...) }