Remove redundancy

This commit is contained in:
Bradley Schofield
2024-10-07 11:40:01 +09:00
parent 1e7c51cf04
commit 91b78a70ae
5 changed files with 13 additions and 13 deletions
@@ -126,7 +126,7 @@ class Certificates extends Action
$certificate = $dbForConsole->findOne('certificates', [Query::equal('domain', [$domain->get()])]);
// If we don't have certificate for domain yet, let's create new document. At the end we save it
if (empty($certificate) || $certificate->isEmpty()) {
if ($certificate->isEmpty()) {
$certificate = new Document();
$certificate->setAttribute('domain', $domain->get());
}