proxy: fix error handling in tests spotted by the linter

This commit is contained in:
Nick Craig-Wood 2025-12-08 12:32:04 +00:00
parent 2631392740
commit 9bc877ad44
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ func TestRun(t *testing.T) {
fs.Fatal(nil, "error generating test private key "+privateKeyErr.Error()) fs.Fatal(nil, "error generating test private key "+privateKeyErr.Error())
} }
publicKey, publicKeyError := ssh.NewPublicKey(&privateKey.PublicKey) publicKey, publicKeyError := ssh.NewPublicKey(&privateKey.PublicKey)
if privateKeyErr != nil { if publicKeyError != nil {
fs.Fatal(nil, "error generating test public key "+publicKeyError.Error()) fs.Fatal(nil, "error generating test public key "+publicKeyError.Error())
} }