mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
TaskScheduler: remove leftover code that makes no sense
this is impossible now that we have typehints
This commit is contained in:
parent
60212cef2f
commit
f2b8d6879f
@ -105,7 +105,7 @@ class TaskScheduler{
|
|||||||
* @param int $taskId
|
* @param int $taskId
|
||||||
*/
|
*/
|
||||||
public function cancelTask(int $taskId){
|
public function cancelTask(int $taskId){
|
||||||
if($taskId !== null and isset($this->tasks[$taskId])){
|
if(isset($this->tasks[$taskId])){
|
||||||
try{
|
try{
|
||||||
$this->tasks[$taskId]->cancel();
|
$this->tasks[$taskId]->cancel();
|
||||||
}catch(\Throwable $e){
|
}catch(\Throwable $e){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user