TaskScheduler: remove leftover code that makes no sense

this is impossible now that we have typehints
This commit is contained in:
Dylan K. Taylor 2018-05-31 12:52:29 +01:00
parent 60212cef2f
commit f2b8d6879f

View File

@ -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){