From e4dd17eb2652c4ddcfeae9c5ec1bb88eb36ba0ac Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Thu, 6 Nov 2025 09:23:01 -0300 Subject: [PATCH] fix: var name Signed-off-by: Carlos Alexandro Becker --- internal/tui/components/anim/anim.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/tui/components/anim/anim.go b/internal/tui/components/anim/anim.go index 55622f072b6ce125e3b319fad3b2bb31b89d8814..556407f7a0fcd50e2b1bb2d823d7ed0330d89528 100644 --- a/internal/tui/components/anim/anim.go +++ b/internal/tui/components/anim/anim.go @@ -28,7 +28,7 @@ const ( // // If the FPS is 20 (50 milliseconds) this means that the ellipsis will // change every 8 frames (400 milliseconds). - ellipsisanimSpeed = 8 + ellipsisAnimSpeed = 8 // The maximum amount of time that can pass before a character appears. // This is used to create a staggered entrance effect. @@ -342,7 +342,7 @@ func (a *anim) Update(msg tea.Msg) (Spinner, tea.Cmd) { if a.initialized.Load() && a.labelWidth > 0 { // Manage the ellipsis animation. ellipsisStep := a.ellipsisStep.Add(1) - if int(ellipsisStep) >= ellipsisanimSpeed*len(ellipsisFrames) { + if int(ellipsisStep) >= ellipsisAnimSpeed*len(ellipsisFrames) { a.ellipsisStep.Store(0) } } else if !a.initialized.Load() && time.Since(a.startTime) >= maxBirthOffset { @@ -380,7 +380,7 @@ func (a *anim) View() string { // have been initialized. if a.initialized.Load() && a.labelWidth > 0 { ellipsisStep := int(a.ellipsisStep.Load()) - if ellipsisFrame, ok := a.ellipsisFrames.Get(ellipsisStep / ellipsisanimSpeed); ok { + if ellipsisFrame, ok := a.ellipsisFrames.Get(ellipsisStep / ellipsisAnimSpeed); ok { b.WriteString(ellipsisFrame) } }