AutoUpdater: remove useless check (details_url is mandatory)

This commit is contained in:
Dylan K. Taylor 2020-06-18 19:06:42 +01:00
parent 98f0447912
commit 44814a8421

View File

@ -99,9 +99,8 @@ class AutoUpdater{
$messages = [
"Your version of " . $this->server->getName() . " is out of date. Version " . $this->newVersion->getFullVersion(true) . " was released on " . date("D M j h:i:s Y", $this->updateInfo->date)
];
if($this->updateInfo->details_url !== null){
$messages[] = "Details: " . $this->updateInfo->details_url;
}
$messages[] = "Details: " . $this->updateInfo->details_url;
$messages[] = "Download: " . $this->updateInfo->download_url;
$this->printConsoleMessage($messages, \LogLevel::WARNING);