Skip to content

Commit

Permalink
Added suggested change from @badyto
Browse files Browse the repository at this point in the history
  • Loading branch information
peppeocchi committed Aug 4, 2017
1 parent 322a103 commit 114e4dd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/GO/Job.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 114e4dd

Please sign in to comment.