Skip to content

Commit

Permalink
Remove logger checks
Browse files Browse the repository at this point in the history
  • Loading branch information
SharkyKZ committed Aug 3, 2019
1 parent 1da9efb commit bd5718b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libraries/src/Image/Image.php
Expand Up @@ -123,8 +123,8 @@ public function __construct($source = null)
// @codeCoverageIgnoreEnd
}

// If a logger hasn't been set, use DelegatingPsrLogger
$this->logger instanceof LoggerInterface ?: $this->logger = Log::createDelegatedLogger();
// Use DelegatingPsrLogger
$this->logger = Log::createDelegatedLogger();

// Determine which image types are supported by GD, but only once.
if (!isset(static::$formats[IMAGETYPE_JPEG]))
Expand Down
2 changes: 1 addition & 1 deletion libraries/src/Image/ImageFilter.php
Expand Up @@ -56,7 +56,7 @@ public function __construct($handle, LoggerInterface $logger = null)
);

// If a logger hasn't been set, use DelegatingPsrLogger
$logger = $this->logger instanceof LoggerInterface ? $this->logger : Log::createDelegatedLogger();
$logger = Log::createDelegatedLogger();
}
}

Expand Down

0 comments on commit bd5718b

Please sign in to comment.