Skip to content

Commit

Permalink
1584: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jekuaitk committed Sep 2, 2024
1 parent e339ba3 commit 959c45f
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ public function sendMessage(WebformSubmissionInterface $webform_submission, arra
* Whether file size threshold was surpassed or not.
*/
private function handleAttachmentNotification(WebformSubmissionInterface $webform_submission, array $message, string $emails): bool {
$isFileSizeThresholdSurpassed = $this->isAttachmentFileSizeThresholdSurpassed($webform_submission);

if ($isFileSizeThresholdSurpassed) {
if ($isFileSizeThresholdSurpassed = $this->isAttachmentFileSizeThresholdSurpassed($webform_submission)) {
$this->sendFileSizeNotification($webform_submission, $message, $emails);
}

Expand Down

0 comments on commit 959c45f

Please sign in to comment.