mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-17 13:53:45 +02:00
Fix command sending error handling and bad assertion order
This commit is contained in:
@@ -71,7 +71,7 @@ abstract class DaemonRepository
|
||||
*/
|
||||
public function getHttpClient(array $headers = []): Client
|
||||
{
|
||||
Assert::isInstanceOf(Node::class, $this->node);
|
||||
Assert::isInstanceOf($this->node, Node::class);
|
||||
|
||||
return new Client([
|
||||
'verify' => $this->app->environment('production'),
|
||||
|
||||
Reference in New Issue
Block a user