Merge pull request #2284 from ollama/mxyng/parse-raw
remove unnecessary parse raw
This commit is contained in:
commit
60f47be64c
1 changed files with 1 additions and 6 deletions
|
@ -147,12 +147,7 @@ func (s SignatureData) Bytes() []byte {
|
|||
|
||||
// SignData takes a SignatureData object and signs it with a raw private key
|
||||
func (s SignatureData) Sign(rawKey []byte) (string, error) {
|
||||
privateKey, err := ssh.ParseRawPrivateKey(rawKey)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
signer, err := ssh.NewSignerFromKey(privateKey)
|
||||
signer, err := ssh.ParsePrivateKey(rawKey)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue