From 1fe0563a205723854c7b4faaa6f648c2e68db7c7 Mon Sep 17 00:00:00 2001 From: Mihail Stoykov Date: Thu, 7 Dec 2023 15:19:52 +0200 Subject: [PATCH] Lint fixes for ui package --- ui/form_fields.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/form_fields.go b/ui/form_fields.go index 71c6617632d..43daa30a2a8 100644 --- a/ui/form_fields.go +++ b/ui/form_fields.go @@ -103,7 +103,7 @@ func (f PasswordField) GetLabelExtra() string { // GetContents simply reads a string in cleartext from the supplied reader func (f PasswordField) GetContents(r io.Reader) (string, error) { - stdin, ok := r.(*os.File) + stdin, ok := r.(*os.File) //nolint:forbidigo if !ok { return "", errors.New("cannot read password from the supplied terminal") }