Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
This path can never be executed.
  • Loading branch information
lcobucci committed Apr 21, 2022
1 parent cd0a840 commit 5eb12bc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions SftpConnectionProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
use phpseclib3\Exception\NoKeyLoadedException;
use phpseclib3\Net\SFTP;
use phpseclib3\System\SSH\Agent;
use RuntimeException;
use Throwable;

use function base64_decode;
Expand Down Expand Up @@ -229,8 +228,6 @@ private function loadPrivateKey(): AsymmetricKey
} catch (NoKeyLoadedException $exception) {
throw new UnableToLoadPrivateKey();
}

throw new RuntimeException();
}

private function authenticateWithAgent(SFTP $connection): void
Expand Down

0 comments on commit 5eb12bc

Please sign in to comment.