Skip to content

Commit

Permalink
simpify ConnectionRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
artyom-jaksov-tl committed Oct 17, 2024
1 parent 0b2889b commit 963b9f8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Model/Config/System/ConnectionRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,8 @@ private function getCacheEncryptionKey(?int $storeId = null): ?string
{
$path = self::XML_PATH_CACHE_ENCRYPTION_KEY;
$value = $this->getStoreValue($path, $storeId);
if (is_string($value)) {
if ($value) {
return $this->encryptor->decrypt($value);
}
return '';
if (!empty($value)) {
return $this->encryptor->decrypt($value);
}
return null;
}
Expand Down

0 comments on commit 963b9f8

Please sign in to comment.