From: Sergey Matveev Date: Sun, 30 Apr 2017 14:06:41 +0000 (+0300) Subject: Unnecessary []byte() X-Git-Tag: 7.4^2~8 X-Git-Url: http://www.git.cypherpunks.ru/?p=govpn.git;a=commitdiff_plain;h=9ca3abcde76628d14eb0c53629a8235a983f0b87 Unnecessary []byte() --- diff --git a/src/cypherpunks.ru/govpn/verifier.go b/src/cypherpunks.ru/govpn/verifier.go index 8be6ea7..26e0275 100644 --- a/src/cypherpunks.ru/govpn/verifier.go +++ b/src/cypherpunks.ru/govpn/verifier.go @@ -133,9 +133,9 @@ func KeyRead(path string) (string, error) { var err error var pass string if path == "" { - os.Stderr.Write([]byte("Passphrase:")) + os.Stderr.WriteString("Passphrase:") p, err = terminal.ReadPassword(0) - os.Stderr.Write([]byte("\n")) + os.Stderr.WriteString("\n") pass = string(p) } else { p, err = ioutil.ReadFile(path)