-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix break line after password input (loadimpact#1703) #1749
Conversation
ui/form.go
Outdated
@@ -65,6 +65,9 @@ func (f Form) Run(r io.Reader, w io.Writer) (map[string]interface{}, error) { | |||
|
|||
color.Set(color.FgCyan) | |||
s, err := field.GetContents(r) | |||
if displayLabel == "Password" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be better off as a type assertion, ensuring that field
is of type PasswordField
.
Codecov Report
@@ Coverage Diff @@
## master #1749 +/- ##
==========================================
+ Coverage 71.37% 71.44% +0.07%
==========================================
Files 178 178
Lines 13751 13779 +28
==========================================
+ Hits 9815 9845 +30
+ Misses 3324 3321 -3
- Partials 612 613 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this!
* Fix break line after password input (loadimpact#1703) * PasswordField type assertion * Form PasswordField type assertion
Sorry, I deleted the branch instead of update the PR and now is duplicated. Anyway thanks for the pointers before.
Closes #1703