Skip to content

Commit

Permalink
fix: cannot use syscall.Stdin (type syscall.Handle) as type int in ar…
Browse files Browse the repository at this point in the history
…gument to terminal.ReadPassword (#452)

* fix: cannot use syscall.Stdin (type syscall.Handle) as type int in argument to terminal.ReadPassword
  • Loading branch information
andriisoldatenko committed Nov 9, 2021
1 parent 4010d03 commit be9e8db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/input/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func Text(promptText string) string {
// Password requests a users passord, does not print out what they entered, and returns it
func Password(promptText string) (string, error) {
fmt.Print(promptText)
bytePassword, err := terminal.ReadPassword(syscall.Stdin)
bytePassword, err := terminal.ReadPassword(int(syscall.Stdin)) // nolint: unconvert
if err != nil {
return "", err
}
Expand Down

0 comments on commit be9e8db

Please sign in to comment.