Skip to content

Commit

Permalink
Update SuluHubScoreFormSender.php
Browse files Browse the repository at this point in the history
minus 3 useless return
  • Loading branch information
tommysonsylverstone authored Jun 29, 2023
1 parent 93f6cd2 commit 48dcced
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/EventSubscriber/SuluHubScoreFormSender.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ private function login($id, $pwd, $base_url, $login_url)
} else {
$this->token = null;
}

return $response;
}

public function beforeSendPerformed(Swift_Events_SendEvent $event)
Expand All @@ -135,7 +133,7 @@ public function sendPerformed(Swift_Events_SendEvent $event)
// insert id in array and execute send mail api request
$this->idArray[] = $messageId;

$response = $this->client->request(
$this->client->request(
'POST',
'https://' . $this->base_url . $this->send_mail_url,
[
Expand All @@ -152,11 +150,8 @@ public function sendPerformed(Swift_Events_SendEvent $event)
]
]
);

return $response;
}
// else, do nothing
return;
}

public function getUrl()
Expand Down

0 comments on commit 48dcced

Please sign in to comment.