Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-10-14 17:25:49 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-10-15 11:39:56 +0300
commit6f9d48f6ff606031533f229b802c7e893fe35e10 (patch)
treed3bd310d05eef9d5332a3840c9a3c84cfc902883 /lib/Address.php
parent4f89fbf81f91150229f66334dec6dfe5f40709c1 (diff)
Fix some issues reported by Psalm
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Address.php')
-rw-r--r--lib/Address.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Address.php b/lib/Address.php
index de2bb2785..8f82c8b32 100644
--- a/lib/Address.php
+++ b/lib/Address.php
@@ -52,7 +52,7 @@ class Address implements JsonSerializable {
public static function fromRaw(string $label, string $email): self {
$wrapped = new Horde_Mail_Rfc822_Address($email);
// If no label is set we use the email
- if ($label !== $email && $label !== null) {
+ if ($label !== $email) {
$wrapped->personal = $label;
}
return new self($wrapped);