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 12, 2023
1 parent 1c4e9f5 commit 1fe0563
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 1fe0563

Please sign in to comment.