always cast to int

This commit is contained in:
2026-09-01 13:15:21 +02:00
parent a809eef125
commit eb06df9bdc

View File

@@ -49,7 +49,8 @@ type Key struct {
func AskForPassword() ([]byte, error) { func AskForPassword() ([]byte, error) {
fmt.Fprint(os.Stderr, "Password: ") fmt.Fprint(os.Stderr, "Password: ")
pass, err := term.ReadPassword(syscall.Stdin) // nolint: unconvert
pass, err := term.ReadPassword(int(syscall.Stdin))
if err != nil { if err != nil {
return nil, fmt.Errorf("failed to read password: %w", err) return nil, fmt.Errorf("failed to read password: %w", err)
} }