Couple more errors found by linting

This commit is contained in:
Kovid Goyal
2022-09-21 19:51:09 +05:30
parent 4b6bae576d
commit 7c41737370
3 changed files with 4 additions and 3 deletions

View File

@@ -263,7 +263,7 @@ func get_password(password string, password_file string, password_env string, us
}
ttyf, err := os.Open(tty.Ctermid())
if err == nil {
err = unix.Dup2(int(ttyf.Fd()), int(os.Stdin.Fd()))
err = unix.Dup2(int(ttyf.Fd()), int(os.Stdin.Fd())) //nolint ineffassign err is returned indicating duping failed
ttyf.Close()
}
}