Skip to content

Commit 30d5f42

Browse files
committed
Delete unusued variable
1 parent 62fc9e3 commit 30d5f42

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

app/code/Magento/Newsletter/Model/Subscriber.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -447,14 +447,12 @@ public function subscribe($email)
447447

448448
try {
449449
$this->save();
450-
if ($sendInformationEmail) {
451-
if ($isConfirmNeed === true
452-
&& $isOwnSubscribes === false
453-
) {
454-
$this->sendConfirmationRequestEmail();
455-
} else {
456-
$this->sendConfirmationSuccessEmail();
457-
}
450+
if ($isConfirmNeed === true
451+
&& $isOwnSubscribes === false
452+
) {
453+
$this->sendConfirmationRequestEmail();
454+
} else {
455+
$this->sendConfirmationSuccessEmail();
458456
}
459457
return $this->getStatus();
460458
} catch (\Exception $e) {

0 commit comments

Comments
 (0)