From 9ca3abcde76628d14eb0c53629a8235a983f0b87 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Sun, 30 Apr 2017 17:06:41 +0300 Subject: [PATCH] Unnecessary []byte() --- src/cypherpunks.ru/govpn/verifier.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.44.0