Cleaning up exceptions in the BuildStatus controller
This commit is contained in:
parent
5fc0ed0249
commit
302717bad0
|
@ -65,7 +65,8 @@ class BuildStatusController extends \PHPCI\Controller
|
|||
public function view($projectId)
|
||||
{
|
||||
$project = $this->projectStore->getById($projectId);
|
||||
if (!$project) {
|
||||
|
||||
if (empty($project)) {
|
||||
throw new NotFoundException('Project with id: ' . $projectId . ' not found');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue