Skip to content

Commit

Permalink
style: automated changes to code style
Browse files Browse the repository at this point in the history
  • Loading branch information
lewislarsen authored and actions-user committed Jul 25, 2024
1 parent 4fb73e8 commit 01a0e2a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/Support/ServerConnection/ServerConnectionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,13 @@ public static function getDefaultPrivateKeyPath(): string
$path = rtrim(static::$defaultPrivateKey, DIRECTORY_SEPARATOR)
. DIRECTORY_SEPARATOR . self::SSH_KEY_FILE_NAME;

if (!file_exists($path)) {
if (! file_exists($path)) {
throw new RuntimeException("Private key file does not exist: {$path}");
}

return $path;
}


/**
* Get the path to the default public key file.
*
Expand Down Expand Up @@ -244,7 +243,6 @@ public static function getPrivateKeyContent(string $path): string
return $content;
}


/**
* Get the content of a public key file.
*
Expand Down

0 comments on commit 01a0e2a

Please sign in to comment.