From dc58240609d5c09f6bdff9a67071434235e6c3dc Mon Sep 17 00:00:00 2001 From: Maas Lalani Date: Mon, 1 May 2023 12:56:05 -0400 Subject: [PATCH] chore(lint): help msg unused param --- help/help.go | 2 +- textinput/textinput.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/help/help.go b/help/help.go index 41576fe..8e5f77f 100644 --- a/help/help.go +++ b/help/help.go @@ -96,7 +96,7 @@ func New() Model { var NewModel = New // Update helps satisfy the Bubble Tea Model interface. It's a no-op. -func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) { +func (m Model) Update(_ tea.Msg) (Model, tea.Cmd) { return m, nil } diff --git a/textinput/textinput.go b/textinput/textinput.go index 368fb1e..b609706 100644 --- a/textinput/textinput.go +++ b/textinput/textinput.go @@ -516,7 +516,8 @@ func (m Model) echoTransform(v string) string { return strings.Repeat(string(m.EchoCharacter), rw.StringWidth(v)) case EchoNone: return "" - + case EchoNormal: + return v default: return v }