]> source.dussan.org Git - nextcloud-server.git/commitdiff
chore(Mailer): remove no-op local variable initilization
authorThomas Lehmann <t.lehmann@strato.de>
Thu, 7 Nov 2024 10:05:11 +0000 (11:05 +0100)
committerThomas Lehmann <147605810+thlehmann-ionos@users.noreply.github.com>
Tue, 19 Nov 2024 10:32:39 +0000 (11:32 +0100)
The IDE hinted the value is immediately overwritten.

Signed-off-by: Thomas Lehmann <t.lehmann@strato.de>
lib/private/Mail/Mailer.php

index b0c08815f1ef0e127a9804aa33dea10660c4fee7..b660ee0c02fd24c9432f84c06f21a80395e7663b 100644 (file)
@@ -255,8 +255,6 @@ class Mailer implements IMailer {
                        return $this->instance;
                }
 
-               $transport = null;
-
                switch ($this->config->getSystemValueString('mail_smtpmode', 'smtp')) {
                        case 'sendmail':
                                $transport = $this->getSendMailInstance();