mirror of
https://github.com/standardebooks/web.git
synced 2025-07-16 03:16:36 -04:00
Remove unused exception variables, now that this is possible with PHP8
This commit is contained in:
parent
fe16cb3b21
commit
8127f0c7e2
36 changed files with 60 additions and 63 deletions
|
@ -61,7 +61,7 @@ class PollVote extends PropertiesBase{
|
|||
$vote = PollVote::Get($this->PollItem->Poll->UrlName, $this->UserId);
|
||||
$error->Add(new Exceptions\PollVoteExistsException($vote));
|
||||
}
|
||||
catch(Exceptions\InvalidPollVoteException $ex){
|
||||
catch(Exceptions\InvalidPollVoteException){
|
||||
// User hasn't voted yet, carry on
|
||||
}
|
||||
|
||||
|
@ -81,7 +81,7 @@ class PollVote extends PropertiesBase{
|
|||
$this->User = User::GetByEmail($email);
|
||||
$this->UserId = $this->User->UserId;
|
||||
}
|
||||
catch(Exceptions\InvalidUserException $ex){
|
||||
catch(Exceptions\InvalidUserException){
|
||||
// Can't validate patron email - do nothing for now,
|
||||
// this will be caught later when we validate the vote during creation.
|
||||
// Save the email in the User object in case we want it later,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue