From 114e4dd09c66b2599ec7449e816ae0e5670e4db3 Mon Sep 17 00:00:00 2001 From: Giuseppe Occhipinti Date: Fri, 4 Aug 2017 11:02:09 +0100 Subject: [PATCH] Added suggested change from @badyto --- src/GO/Job.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/GO/Job.php b/src/GO/Job.php index 71acc60..c18ed9a 100644 --- a/src/GO/Job.php +++ b/src/GO/Job.php @@ -499,15 +499,17 @@ private function finalise() /** * Email the output of the job, if any. * - * @return void + * @return bool */ private function emailOutput() { if (! count($this->outputTo) || ! count($this->emailTo)) { - return; + return false; } $this->sendToEmails($this->outputTo); + + return true; } /**