Remove redundant existence check in Formwork::loadSite()

This commit is contained in:
Giuseppe Criscione 2020-12-26 17:09:29 +01:00
parent 9fed590fae
commit 4ade0ec626

View File

@ -11,7 +11,6 @@ use Formwork\Parsers\YAML;
use Formwork\Router\Router;
use Formwork\Traits\SingletonTrait;
use Formwork\Translations\Translations;
use Formwork\Utils\FileSystem;
use Formwork\Utils\Header;
use Formwork\Utils\HTTPRequest;
use Formwork\Utils\Str;
@ -261,7 +260,6 @@ final class Formwork
*/
protected function loadSite(): void
{
FileSystem::assertExists(CONFIG_PATH . 'site.yml');
$config = YAML::parseFile(CONFIG_PATH . 'site.yml');
$this->site = new Site($config);
$this->site->setLanguages($this->languages);