is_dir check is removed

This commit is contained in:
Dmitry Alekseev
2018-02-18 14:48:06 +03:00
parent 2adf654888
commit 484d2a63ec

View File

@ -102,9 +102,7 @@ class FileTarget extends Target
public function export()
{
$logPath = dirname($this->logFile);
if (!is_dir($logPath)) {
FileHelper::createDirectory($logPath, $this->dirMode, true);
}
FileHelper::createDirectory($logPath, $this->dirMode, true);
$text = implode("\n", array_map([$this, 'formatMessage'], $this->messages)) . "\n";
if (($fp = @fopen($this->logFile, 'a')) === false) {