Skip to content

Commit

Permalink
Form PasswordField type assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
paroar committed Dec 1, 2020
1 parent 056b140 commit 31accdf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ui/form.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ func (f Form) Run(r io.Reader, w io.Writer) (map[string]interface{}, error) {
s, err := field.GetContents(r)

if _, ok := field.(PasswordField); ok {
if _, err := fmt.Fprint(w, "\n"); err != nil {
return nil, err
}
fmt.Fprint(w, "\n")
}

color.Unset()
Expand Down

0 comments on commit 31accdf

Please sign in to comment.