Skip to content

Commit

Permalink
Lint fixes for ui package
Browse files Browse the repository at this point in the history
  • Loading branch information
mstoykov committed Dec 11, 2023
1 parent 59adca0 commit 5696308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/form_fields.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit 5696308

Please sign in to comment.