mirror of
https://github.com/navidrome/navidrome.git
synced 2026-05-03 06:51:16 +00:00
fix lint, I hope
This commit is contained in:
parent
f7c3fe8684
commit
df0b685ee4
@ -129,14 +129,15 @@ var (
|
|||||||
func promptPassword() string {
|
func promptPassword() string {
|
||||||
for {
|
for {
|
||||||
fmt.Print("Enter new password (press enter with no password to cancel): ")
|
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 {
|
if err != nil {
|
||||||
log.Fatal("Error getting password", err)
|
log.Fatal("Error getting password", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Print("\nConfirm new password (press enter with no password to cancel): ")
|
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 {
|
if err != nil {
|
||||||
log.Fatal("Error getting password confirmation", err)
|
log.Fatal("Error getting password confirmation", err)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user