mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Remove redundancy
This commit is contained in:
1 parent
1e7c51cf04
commit
91b78a70ae
5 files changed
+13
-13
No files matched your search
@@ -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());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user