mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 03:50:54 +01:00
Fix an issue with rendering unit messages for diffs with no buildable
Summary: Fixes T10591. This was accidentally reverted in 148a50e48b
, probably when resolvign a merge/rebase.
Test Plan: Will push to production.
Reviewers: chad
Reviewed By: chad
Maniphest Tasks: T10591
Differential Revision: https://secure.phabricator.com/D15474
This commit is contained in:
parent
a1dd1ad3cf
commit
121e68e3ad
1 changed files with 4 additions and 0 deletions
|
@ -1131,6 +1131,10 @@ final class DifferentialRevisionViewController extends DifferentialController {
|
||||||
DifferentialRevision $revision) {
|
DifferentialRevision $revision) {
|
||||||
$viewer = $this->getViewer();
|
$viewer = $this->getViewer();
|
||||||
|
|
||||||
|
if (!$diff->getBuildable()) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
if (!$diff->getUnitMessages()) {
|
if (!$diff->getUnitMessages()) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue