fix lint, I hope

This commit is contained in:
Kendall Garner 2025-11-30 18:43:31 -08:00
parent f7c3fe8684
commit df0b685ee4
No known key found for this signature in database
GPG Key ID: 9355F387FE765C94

View File

@ -129,14 +129,15 @@ var (
func promptPassword() string {
for {
fmt.Print("Enter new password (press enter with no password to cancel): ")
password, err := term.ReadPassword(syscall.Stdin)
// This cast is necessary for some platforms
password, err := term.ReadPassword(int(syscall.Stdin)) //nolint:unconvert
if err != nil {
log.Fatal("Error getting password", err)
}
fmt.Print("\nConfirm new password (press enter with no password to cancel): ")
confirmation, err := term.ReadPassword(syscall.Stdin)
confirmation, err := term.ReadPassword(int(syscall.Stdin)) //nolint:unconvert
if err != nil {
log.Fatal("Error getting password confirmation", err)