fix pass: Trim leading & trailing whitespace

This commit is contained in:
Vincent Ambo 2017-02-20 14:25:18 +01:00
parent 0147c3e13e
commit 0b992c6156

View file

@ -8,6 +8,7 @@ import (
"os/exec" "os/exec"
"github.com/polydawn/meep" "github.com/polydawn/meep"
"strings"
) )
type PassError struct { type PassError struct {
@ -28,5 +29,7 @@ func GetFromPass(key string) (string, error) {
) )
} }
return string(output), nil trimmed := strings.TrimSpace(string(output))
return trimmed, nil
} }