Skip to content

Commit 7d2e310

Browse files
luigifabfballiano
authored andcommitted
Removed useless "try catch throw" (#2676)
1 parent f6fd7b3 commit 7d2e310

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

app/code/core/Mage/Newsletter/Model/Subscriber.php

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -359,20 +359,16 @@ public function subscribe($email)
359359

360360
$this->setIsStatusChanged(true);
361361

362-
try {
363-
$this->save();
364-
if ($isConfirmNeed === true
365-
&& $isOwnSubscribes === false
366-
) {
367-
$this->sendConfirmationRequestEmail();
368-
} else {
369-
$this->sendConfirmationSuccessEmail();
370-
}
371-
372-
return $this->getStatus();
373-
} catch (Exception $e) {
374-
throw new Exception($e->getMessage());
362+
$this->save();
363+
if ($isConfirmNeed === true
364+
&& $isOwnSubscribes === false
365+
) {
366+
$this->sendConfirmationRequestEmail();
367+
} else {
368+
$this->sendConfirmationSuccessEmail();
375369
}
370+
371+
return $this->getStatus();
376372
}
377373

378374
/**

0 commit comments

Comments
 (0)