mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-04 23:42:34 +00:00
refactoring - remove unused code
This commit is contained in:
@ -2,7 +2,6 @@
|
||||
|
||||
namespace App\Jobs\SshKey;
|
||||
|
||||
use App\Events\Broadcast;
|
||||
use App\Jobs\Job;
|
||||
use App\Models\Server;
|
||||
use App\Models\SshKey;
|
||||
@ -31,20 +30,10 @@ public function handle()
|
||||
'delete-ssh-key'
|
||||
);
|
||||
$this->server->sshKeys()->detach($this->sshKey);
|
||||
event(
|
||||
new Broadcast('delete-ssh-key-finished', [
|
||||
'sshKey' => $this->sshKey,
|
||||
])
|
||||
);
|
||||
}
|
||||
|
||||
public function failed(): void
|
||||
{
|
||||
$this->server->sshKeys()->attach($this->sshKey);
|
||||
event(
|
||||
new Broadcast('delete-ssh-key-failed', [
|
||||
'sshKey' => $this->sshKey,
|
||||
])
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user