Cleaned up bool comparison mess

This commit is contained in:
Dylan K. Taylor
2018-03-19 14:10:55 +00:00
parent 24c5d7557e
commit ac5a91b67e
39 changed files with 141 additions and 141 deletions

View File

@ -62,7 +62,7 @@ abstract class AsyncTask extends Collectable{
public function run(){
$this->result = null;
if($this->cancelRun !== true){
if(!$this->cancelRun){
try{
$this->onRun();
}catch(\Throwable $e){
@ -90,7 +90,7 @@ abstract class AsyncTask extends Collectable{
}
public function hasCancelledRun() : bool{
return $this->cancelRun === true;
return $this->cancelRun;
}
/**