mirror of
https://github.com/rclone/rclone.git
synced 2025-12-11 22:14:05 +01:00
proxy: fix error handling in tests spotted by the linter
This commit is contained in:
@@ -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())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user