Update password.go

Loop is equivalent.
This commit is contained in:
bdd 2014-08-07 13:41:41 -04:00
parent f57a2f968c
commit b55ab5d5b4
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ func PasswordKeyboardInteractive(password string) ssh.KeyboardInteractiveChallen
// Just send the password back for all questions
answers := make([]string, len(questions))
for i, _ := range answers {
for i := range answers {
answers[i] = string(password)
}