Skip to content

Commit

Permalink
Remove Server $server argument on AsyncTask::onCompletion() accordi…
Browse files Browse the repository at this point in the history
  • Loading branch information
PresentKim committed Sep 11, 2018
1 parent d264366 commit 368a8e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/kim/present/dustbin/task/CheckUpdateAsyncTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,8 @@ public function onRun() : void{
/**
* Actions to execute when completed (on main thread)
* Implement this if you want to handle the data in your AsyncTask after it has been processed
*
* @param Server $server
*/
public function onCompletion(Server $server) : void{
public function onCompletion() : void{
$plugin = DustBin::getInstance();
if($this->latestVersion === null){
$plugin->getLogger()->critical("Update check failed : Connection to release server failed");
Expand Down
4 changes: 1 addition & 3 deletions src/kim/present/dustbin/task/ShortenDownloadURLAsyncTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,8 @@ public function onRun() : void{
/**
* Actions to execute when completed (on main thread)
* Implement this if you want to handle the data in your AsyncTask after it has been processed
*
* @param Server $server
*/
public function onCompletion(Server $server) : void{
public function onCompletion() : void{
if($this->shortURL !== null){
$plugin = DustBin::getInstance();
$plugin->getLogger()->warning("latest release link : {$this->shortURL}");
Expand Down

0 comments on commit 368a8e2

Please sign in to comment.